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