예제 #1
0
        public void ItShouldResolveInterface1()
        {
            // Act
            IInterface1 actual = _container.GetService <IInterface1>();

            // Assert
            actual
            .Should()
            .NotBeNull()
            .And.BeOfType <ConcreteDerivedClass>();
        }
예제 #2
0
        public void TheInterfacesShouldResolveToTheSameInstances()
        {
            // Act
            IInterface1 actual = _container.GetService <IInterface1>();

            // Assert
            actual
            .Should()
            .NotBeNull()
            .And.BeSameAs(_container.GetService <IInterface2>());
        }