public static void ExpectGetLog(this IInjectionContext mock, IGroboContainerLog result)
 {
     Expect.Once.On(mock)
     .Method("GetLog")
     .WithNoArguments()
     .Will(Return.Value(result));
 }
Ejemplo n.º 2
0
 public static void ExpectGetLog(this IGroboContainerLog mock, string log)
 {
     Expect.Once.On(mock)
     .Method("GetLog")
     .WithNoArguments()
     .Will(Return.Value(log));
 }
Ejemplo n.º 3
0
 public InjectionContext(IInternalContainer internalContainer, IGroboContainerLog log,
                         Func <IInjectionContext, int, IContextHolder> createHolder)
 {
     InternalContainer = internalContainer;
     this.log          = log;
     this.createHolder = createHolder;
     ThreadId          = Thread.CurrentThread.ManagedThreadId;
 }
Ejemplo n.º 4
0
 public Container(IInternalContainer internalContainer, IContextHolder holder, IGroboContainerLog currentLog)
 {
     this.internalContainer = internalContainer;
     this.holder            = holder;
     lastConstructedLog     = currentLog;
 }
Ejemplo n.º 5
0
 public static void ExpectEndGetAll(this IGroboContainerLog mock, Type type)
 {
     Expect.Once.On(mock)
     .Method("EndGetAll")
     .With(type);
 }
Ejemplo n.º 6
0
 public static void ExpectBeginCreate(this IGroboContainerLog mock, Type type)
 {
     Expect.Once.On(mock)
     .Method("BeginCreate")
     .With(type);
 }
Ejemplo n.º 7
0
 public static void ExpectReused(this IGroboContainerLog mock, Type classType)
 {
     Expect.Once.On(mock)
     .Method("Reused")
     .With(classType);
 }
Ejemplo n.º 8
0
 public static void ExpectEndConstruct(this IGroboContainerLog mock, Type classType)
 {
     Expect.Once.On(mock)
     .Method("EndConstruct")
     .With(classType);
 }
Ejemplo n.º 9
0
 public static void ExpectCrash(this IGroboContainerLog mock)
 {
     Expect.Once.On(mock)
     .Method("Crash")
     .WithNoArguments();
 }