public void Resolve_Logger_From_LifetimeScope_Test()
        {
            ISampleClass sampleClass = _container.Resolve <ISampleClass>("serviceLocator");

            Assert.NotNull(sampleClass.GetLogger());
        }
        public void Inject_Logger_To_Property_Test()
        {
            ISampleClass sampleClass = _container.Resolve <ISampleClass>("property");

            Assert.NotNull(sampleClass.GetLogger());
        }
        public void Inject_Logger_To_Constructor_Test()
        {
            ISampleClass sampleClass = _container.Resolve <ISampleClass>("constructor");

            Assert.NotNull(sampleClass.GetLogger());
        }
Exemplo n.º 4
0
        public void Inject_logger_into_property_test()
        {
            ISampleClass sampleClass = container.ResolveNamed <ISampleClass>("property");

            Assert.NotNull(sampleClass.GetLogger());
        }
Exemplo n.º 5
0
        public void Inject_logger_into_constructor_test()
        {
            ISampleClass sampleClass = container.ResolveNamed <ISampleClass>("constructor");

            Assert.NotNull(sampleClass.GetLogger());
        }
Exemplo n.º 6
0
        public void Resolve_logger_from_lifetime_scope_test()
        {
            ISampleClass sampleClass = container.ResolveNamed <ISampleClass>("serviceLocator");

            Assert.NotNull(sampleClass.GetLogger());
        }