Пример #1
0
 public static void ExpectGetForFunc <T>(this IContainerForFuncBuilder mock, T result)
 {
     Expect
     .Once
     .On(mock)
     .Method("GetForFunc", typeof(T))
     .With()
     .Will(Return.Value(result));
 }
Пример #2
0
 public static void ExpectCreateForFunc <T1, T>(this IContainerForFuncBuilder mock, T1 arg1, T result)
 {
     Expect
     .Once
     .On(mock)
     .Method("CreateForFunc", typeof(T1), typeof(T))
     .With(arg1)
     .Will(Return.Value(result));
 }
 public static void ExpectGetContainerForFunc(this IInjectionContext mock, IContainerForFuncBuilder result)
 {
     Expect.Once.On(mock)
     .GetProperty("ContainerForFunc")
     .Will(Return.Value(result));
 }