Exemplo n.º 1
0
 private static IRegistration createRegistration(TransientLifecycle sut)
 {
     return(sut.CreateRegistration(typeof(IEmailService), typeof(NullEmailService)));
 }
Exemplo n.º 2
0
        public void CreateRegistration_WhenRegistering_WithNullImplementationType_ShouldThrowArgumentNullException()
        {
            TransientLifecycle sut = createSut();

            Assert.Throws <ArgumentNullException>(() => sut.CreateRegistration(typeof(IEmailService), null));
        }