Show / Hide Table of Contents

Class ShimConfigurationManager

Shim type of System.Configuration.ConfigurationManager

Inheritance
System.Object
Microsoft.QualityTools.Testing.Fakes.Shims.ShimBase
ShimConfigurationManager
Microsoft.QualityTools.Testing.Fakes.Shims.ShimBase.TargetType
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
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 Source

AppSettingsGet

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>
View Source

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
View Source

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
View Source

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>
View Source

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
View Source

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>
View Source

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>
View Source

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>
View Source

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>
View Source

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>
View Source

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>
View Source

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>
View Source

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>
View Source

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>
View Source

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>
View Source

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
View Source

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>
View Source

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>
View Source

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>
View Source

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>
View Source

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
View Source

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 Source

BehaveAsCurrent()

Assigns the 'Current' behavior for all methods of the shimmed type

Declaration
public static void BehaveAsCurrent()
View Source

BehaveAsNotImplemented()

Assigns the 'NotImplemented' behavior for all methods of the shimmed type

Declaration
public static void BehaveAsNotImplemented()

Extension Methods

CollectionExtensions.AddRange<T, TCollection>(TCollection, IEnumerable<T>)
SerializableObjectCloneExtension.Clone<T>(T)
  • View Source
Back to top Generated by DocFX