Show / Hide Table of Contents

Class NSubstituteExtension

Inheritance
System.Object
NSubstituteExtension
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Terrasoft.TestFramework
Assembly: Terrasoft.TestFramework.dll
Syntax
public static class NSubstituteExtension

Methods

GetMethodArgumentsDefValues(ParameterInfo[])

Declaration
public static IEnumerable<object> GetMethodArgumentsDefValues(this ParameterInfo[] source)
Parameters
Type Name Description
System.Reflection.ParameterInfo[] source
Returns
Type Description
System.Collections.Generic.IEnumerable<System.Object>

GetMethodsExceptEventsFromHierarchy(Type, Type)

Declaration
public static IEnumerable<MethodInfo> GetMethodsExceptEventsFromHierarchy(this Type source, Type rootType = null)
Parameters
Type Name Description
System.Type source
System.Type rootType
Returns
Type Description
System.Collections.Generic.IEnumerable<System.Reflection.MethodInfo>

MatchInstance<T>(T)

Declaration
public static T MatchInstance<T>(this T source)
Parameters
Type Name Description
T source
Returns
Type Description
T
Type Parameters
Name Description
T

Protected(Object, String, Boolean, Object[])

Declaration
public static object Protected(this object source, string name, bool checkArgsType, params object[] args)
Parameters
Type Name Description
System.Object source
System.String name
System.Boolean checkArgsType
System.Object[] args
Returns
Type Description
System.Object

Protected(Object, String, Object[])

Declaration
public static object Protected(this object source, string name, params object[] args)
Parameters
Type Name Description
System.Object source
System.String name
System.Object[] args
Returns
Type Description
System.Object

ProtectedGeneric<T>(Object, String, Boolean, Object[])

Declaration
public static object ProtectedGeneric<T>(this object source, string name, bool checkArgsType, params object[] args)
Parameters
Type Name Description
System.Object source
System.String name
System.Boolean checkArgsType
System.Object[] args
Returns
Type Description
System.Object
Type Parameters
Name Description
T

ProtectedGeneric<T>(Object, String, Object[])

Declaration
public static object ProtectedGeneric<T>(this object source, string name, params object[] args)
Parameters
Type Name Description
System.Object source
System.String name
System.Object[] args
Returns
Type Description
System.Object
Type Parameters
Name Description
T

ProtectedProperty(Object, String)

Declaration
public static object ProtectedProperty(this object source, string propertyName)
Parameters
Type Name Description
System.Object source
System.String propertyName
Returns
Type Description
System.Object

SetupAnyString(IResourceManager, String)

Declaration
public static IResourceManager SetupAnyString(this IResourceManager source, string value)
Parameters
Type Name Description
IResourceManager source
System.String value
Returns
Type Description
IResourceManager

SetupAppManagerProvider(AppConnection)

Declaration
public static TestManagerProvider SetupAppManagerProvider(this AppConnection source)
Parameters
Type Name Description
AppConnection source
Returns
Type Description
TestManagerProvider

SetupDataValueTypeManager(EntitySchemaManager, DataValueTypeManager)

Declaration
public static DataValueTypeManager SetupDataValueTypeManager(this EntitySchemaManager source, DataValueTypeManager dataValueTypeManager = null)
Parameters
Type Name Description
EntitySchemaManager source
DataValueTypeManager dataValueTypeManager
Returns
Type Description
DataValueTypeManager

SetupDataValueTypeManager(UserConnection, DataValueTypeManager, Boolean)

Declaration
public static DataValueTypeManager SetupDataValueTypeManager(this UserConnection source, DataValueTypeManager dataValueTypeManager = null, bool registerInManagerProvider = false)
Parameters
Type Name Description
UserConnection source
DataValueTypeManager dataValueTypeManager
System.Boolean registerInManagerProvider
Returns
Type Description
DataValueTypeManager

SetupString(IResourceManager, String, String)

Declaration
public static IResourceManager SetupString(this IResourceManager source, string key, string value)
Parameters
Type Name Description
IResourceManager source
System.String key
System.String value
Returns
Type Description
IResourceManager

SetupSystemValueManager(EntitySchemaManager, SystemValueManager)

Declaration
public static SystemValueManager SetupSystemValueManager(this EntitySchemaManager source, SystemValueManager systemValueManager = null)
Parameters
Type Name Description
EntitySchemaManager source
SystemValueManager systemValueManager
Returns
Type Description
SystemValueManager

SetupSysUserInfo(UserConnection, IDateTimeProvider)

Declaration
public static SysUserInfo SetupSysUserInfo(this UserConnection source, IDateTimeProvider dateTimeProvider)
Parameters
Type Name Description
UserConnection source
IDateTimeProvider dateTimeProvider
Returns
Type Description
SysUserInfo
Back to top Generated by DocFX