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()
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 Parameters
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
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
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
Returns
SetupAppManagerProvider(AppConnection)
Declaration
public static TestManagerProvider SetupAppManagerProvider(this AppConnection source)
Parameters
Returns
SetupDataValueTypeManager(EntitySchemaManager, DataValueTypeManager)
Declaration
public static DataValueTypeManager SetupDataValueTypeManager(this EntitySchemaManager source, DataValueTypeManager dataValueTypeManager = null)
Parameters
Returns
SetupDataValueTypeManager(UserConnection, DataValueTypeManager, Boolean)
Declaration
public static DataValueTypeManager SetupDataValueTypeManager(this UserConnection source, DataValueTypeManager dataValueTypeManager = null, bool registerInManagerProvider = false)
Parameters
Returns
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
SetupSystemValueManager(EntitySchemaManager, SystemValueManager)
Declaration
public static SystemValueManager SetupSystemValueManager(this EntitySchemaManager source, SystemValueManager systemValueManager = null)
Parameters
Returns
SetupSysUserInfo(UserConnection, IDateTimeProvider)
Declaration
public static SysUserInfo SetupSysUserInfo(this UserConnection source, IDateTimeProvider dateTimeProvider)
Parameters
Returns