Class ShimConfigurationManager
Shim type of System.Configuration.ConfigurationManager
Inheritance
Namespace: System.Configuration.Fakes
Assembly: System.Configuration.ConfigurationManager.4.0.3.0.Fakes.dll
Syntax
[ShimClass(typeof(ConfigurationManager))]
public sealed class ShimConfigurationManager : ShimBase
Properties
View SourceAppSettingsGet
Sets the Shim of ConfigurationManager.get_AppSettings()
Declaration
public static FakesDelegates.Func<NameValueCollection> AppSettingsGet
{
[ShimMethod("get_AppSettings", 24)]
set;
}
Property Value
Type | Description |
---|---|
Microsoft.QualityTools.Testing.Fakes.FakesDelegates.Func<System.Collections.Specialized.NameValueCollection> |
Behavior
Assigns the behavior for all methods of the shimmed type
Declaration
public static IShimBehavior Behavior { set; }
Property Value
Type | Description |
---|---|
Microsoft.QualityTools.Testing.Fakes.Shims.IShimBehavior |
CompleteConfigInit
Sets the Shim of ConfigurationManager.CompleteConfigInit()
Declaration
public static FakesDelegates.Action CompleteConfigInit
{
[ShimMethod("CompleteConfigInit", 40)]
set;
}
Property Value
Type | Description |
---|---|
Microsoft.QualityTools.Testing.Fakes.FakesDelegates.Action |
ConnectionStringsGet
Sets the Shim of ConfigurationManager.get_ConnectionStrings()
Declaration
public static FakesDelegates.Func<ConnectionStringSettingsCollection> ConnectionStringsGet
{
[ShimMethod("get_ConnectionStrings", 24)]
set;
}
Property Value
Type | Description |
---|---|
Microsoft.QualityTools.Testing.Fakes.FakesDelegates.Func<System.Configuration.ConnectionStringSettingsCollection> |
EnsureConfigurationSystem
Sets the Shim of ConfigurationManager.EnsureConfigurationSystem()
Declaration
public static FakesDelegates.Action EnsureConfigurationSystem
{
[ShimMethod("EnsureConfigurationSystem", 40)]
set;
}
Property Value
Type | Description |
---|---|
Microsoft.QualityTools.Testing.Fakes.FakesDelegates.Action |
GetSectionString
Sets the Shim of ConfigurationManager.GetSection(String sectionName)
Declaration
public static FakesDelegates.Func<string, object> GetSectionString
{
[ShimMethod("GetSection", 24)]
set;
}
Property Value
Type | Description |
---|---|
Microsoft.QualityTools.Testing.Fakes.FakesDelegates.Func<System.String, System.Object> |
OpenExeConfigurationConfigurationUserLevel
Sets the Shim of ConfigurationManager.OpenExeConfiguration(ConfigurationUserLevel userLevel)
Declaration
public static FakesDelegates.Func<ConfigurationUserLevel, Configuration> OpenExeConfigurationConfigurationUserLevel
{
[ShimMethod("OpenExeConfiguration", 24)]
set;
}
Property Value
Type | Description |
---|---|
Microsoft.QualityTools.Testing.Fakes.FakesDelegates.Func<System.Configuration.ConfigurationUserLevel, System.Configuration.Configuration> |
OpenExeConfigurationImplConfigurationFileMapBooleanConfigurationUserLevelStringBoolean
Sets the Shim of ConfigurationManager.OpenExeConfigurationImpl(ConfigurationFileMap fileMap, Boolean isMachine, ConfigurationUserLevel userLevel, String exePath, Boolean preLoad)
Declaration
public static FakesDelegates.Func<ConfigurationFileMap, bool, ConfigurationUserLevel, string, bool, Configuration> OpenExeConfigurationImplConfigurationFileMapBooleanConfigurationUserLevelStringBoolean
{
[ShimMethod("OpenExeConfigurationImpl", 40)]
set;
}
Property Value
Type | Description |
---|---|
Microsoft.QualityTools.Testing.Fakes.FakesDelegates.Func<System.Configuration.ConfigurationFileMap, System.Boolean, System.Configuration.ConfigurationUserLevel, System.String, System.Boolean, System.Configuration.Configuration> |
OpenExeConfigurationString
Sets the Shim of ConfigurationManager.OpenExeConfiguration(String exePath)
Declaration
public static FakesDelegates.Func<string, Configuration> OpenExeConfigurationString
{
[ShimMethod("OpenExeConfiguration", 24)]
set;
}
Property Value
Type | Description |
---|---|
Microsoft.QualityTools.Testing.Fakes.FakesDelegates.Func<System.String, System.Configuration.Configuration> |
OpenMachineConfiguration
Sets the Shim of ConfigurationManager.OpenMachineConfiguration()
Declaration
public static FakesDelegates.Func<Configuration> OpenMachineConfiguration
{
[ShimMethod("OpenMachineConfiguration", 24)]
set;
}
Property Value
Type | Description |
---|---|
Microsoft.QualityTools.Testing.Fakes.FakesDelegates.Func<System.Configuration.Configuration> |
OpenMappedExeConfigurationExeConfigurationFileMapConfigurationUserLevel
Sets the Shim of ConfigurationManager.OpenMappedExeConfiguration(ExeConfigurationFileMap fileMap, ConfigurationUserLevel userLevel)
Declaration
public static FakesDelegates.Func<ExeConfigurationFileMap, ConfigurationUserLevel, Configuration> OpenMappedExeConfigurationExeConfigurationFileMapConfigurationUserLevel
{
[ShimMethod("OpenMappedExeConfiguration", 24)]
set;
}
Property Value
Type | Description |
---|---|
Microsoft.QualityTools.Testing.Fakes.FakesDelegates.Func<System.Configuration.ExeConfigurationFileMap, System.Configuration.ConfigurationUserLevel, System.Configuration.Configuration> |
OpenMappedExeConfigurationExeConfigurationFileMapConfigurationUserLevelBoolean
Sets the Shim of ConfigurationManager.OpenMappedExeConfiguration(ExeConfigurationFileMap fileMap, ConfigurationUserLevel userLevel, Boolean preLoad)
Declaration
public static FakesDelegates.Func<ExeConfigurationFileMap, ConfigurationUserLevel, bool, Configuration> OpenMappedExeConfigurationExeConfigurationFileMapConfigurationUserLevelBoolean
{
[ShimMethod("OpenMappedExeConfiguration", 24)]
set;
}
Property Value
Type | Description |
---|---|
Microsoft.QualityTools.Testing.Fakes.FakesDelegates.Func<System.Configuration.ExeConfigurationFileMap, System.Configuration.ConfigurationUserLevel, System.Boolean, System.Configuration.Configuration> |
OpenMappedMachineConfigurationConfigurationFileMap
Sets the Shim of ConfigurationManager.OpenMappedMachineConfiguration(ConfigurationFileMap fileMap)
Declaration
public static FakesDelegates.Func<ConfigurationFileMap, Configuration> OpenMappedMachineConfigurationConfigurationFileMap
{
[ShimMethod("OpenMappedMachineConfiguration", 24)]
set;
}
Property Value
Type | Description |
---|---|
Microsoft.QualityTools.Testing.Fakes.FakesDelegates.Func<System.Configuration.ConfigurationFileMap, System.Configuration.Configuration> |
PreloadConfigurationConfiguration
Sets the Shim of ConfigurationManager.PreloadConfiguration(Configuration configuration)
Declaration
public static FakesDelegates.Action<Configuration> PreloadConfigurationConfiguration
{
[ShimMethod("PreloadConfiguration", 40)]
set;
}
Property Value
Type | Description |
---|---|
Microsoft.QualityTools.Testing.Fakes.FakesDelegates.Action<System.Configuration.Configuration> |
PreloadConfigurationSectionGroupConfigurationSectionGroup
Sets the Shim of ConfigurationManager.PreloadConfigurationSectionGroup(ConfigurationSectionGroup sectionGroup)
Declaration
public static FakesDelegates.Action<ConfigurationSectionGroup> PreloadConfigurationSectionGroupConfigurationSectionGroup
{
[ShimMethod("PreloadConfigurationSectionGroup", 40)]
set;
}
Property Value
Type | Description |
---|---|
Microsoft.QualityTools.Testing.Fakes.FakesDelegates.Action<System.Configuration.ConfigurationSectionGroup> |
PrepareConfigSystem
Sets the Shim of ConfigurationManager.PrepareConfigSystem()
Declaration
public static FakesDelegates.Action PrepareConfigSystem
{
[ShimMethod("PrepareConfigSystem", 40)]
set;
}
Property Value
Type | Description |
---|---|
Microsoft.QualityTools.Testing.Fakes.FakesDelegates.Action |
RefreshSectionString
Sets the Shim of ConfigurationManager.RefreshSection(String sectionName)
Declaration
public static FakesDelegates.Action<string> RefreshSectionString
{
[ShimMethod("RefreshSection", 24)]
set;
}
Property Value
Type | Description |
---|---|
Microsoft.QualityTools.Testing.Fakes.FakesDelegates.Action<System.String> |
SetConfigurationSystemIInternalConfigSystemBoolean
Sets the Shim of ConfigurationManager.SetConfigurationSystem(IInternalConfigSystem configSystem, Boolean initComplete)
Declaration
public static FakesDelegates.Action<IInternalConfigSystem, bool> SetConfigurationSystemIInternalConfigSystemBoolean
{
[ShimMethod("SetConfigurationSystem", 40)]
set;
}
Property Value
Type | Description |
---|---|
Microsoft.QualityTools.Testing.Fakes.FakesDelegates.Action<System.Configuration.Internal.IInternalConfigSystem, System.Boolean> |
SetConfigurationSystemInProgressGet
Sets the Shim of ConfigurationManager.get_SetConfigurationSystemInProgress()
Declaration
public static FakesDelegates.Func<bool> SetConfigurationSystemInProgressGet
{
[ShimMethod("get_SetConfigurationSystemInProgress", 40)]
set;
}
Property Value
Type | Description |
---|---|
Microsoft.QualityTools.Testing.Fakes.FakesDelegates.Func<System.Boolean> |
SetInitErrorException
Sets the Shim of ConfigurationManager.SetInitError(Exception initError)
Declaration
public static FakesDelegates.Action<Exception> SetInitErrorException
{
[ShimMethod("SetInitError", 40)]
set;
}
Property Value
Type | Description |
---|---|
Microsoft.QualityTools.Testing.Fakes.FakesDelegates.Action<System.Exception> |
StaticConstructor
Sets the Shim of ConfigurationManager.ConfigurationManager()
Declaration
public static FakesDelegates.Action StaticConstructor
{
[ShimMethod(".cctor", 40)]
set;
}
Property Value
Type | Description |
---|---|
Microsoft.QualityTools.Testing.Fakes.FakesDelegates.Action |
SupportsUserConfigGet
Sets the Shim of ConfigurationManager.get_SupportsUserConfig()
Declaration
public static FakesDelegates.Func<bool> SupportsUserConfigGet
{
[ShimMethod("get_SupportsUserConfig", 40)]
set;
}
Property Value
Type | Description |
---|---|
Microsoft.QualityTools.Testing.Fakes.FakesDelegates.Func<System.Boolean> |
Methods
View SourceBehaveAsCurrent()
Assigns the 'Current' behavior for all methods of the shimmed type
Declaration
public static void BehaveAsCurrent()
BehaveAsNotImplemented()
Assigns the 'NotImplemented' behavior for all methods of the shimmed type
Declaration
public static void BehaveAsNotImplemented()