public void ResolveAllByType_WithValidData_ShouldInvokeMockMethod() { DexterContainer.SetCurrent(this.mockContainer.Object); DexterContainer.ResolveAll(typeof(DexterContainerTest)); this.mockContainer.Verify(x => x.ResolveAll(typeof(DexterContainerTest))); }
public void ResolveAll_WithValidData_ShouldInvokeMockMethod() { DexterContainer.SetCurrent(this.mockContainer.Object); DexterContainer.ResolveAll <DexterContainerTest>(); this.mockContainer.Verify(x => x.ResolveAll <DexterContainerTest>(), Times.Once()); }
public void ResolveAllByType_WithNullType_ShouldThrowArgumentNullException() { Executing.This(() => DexterContainer.ResolveAll(null)).Should().Throw <ArgumentNullException>(); }