public void ItShouldResolveInterface1() { // Act IInterface1 actual = _container.GetService <IInterface1>(); // Assert actual .Should() .NotBeNull() .And.BeOfType <ConcreteDerivedClass>(); }
public void TheInterfacesShouldResolveToTheSameInstances() { // Act IInterface1 actual = _container.GetService <IInterface1>(); // Assert actual .Should() .NotBeNull() .And.BeSameAs(_container.GetService <IInterface2>()); }