public void UnsetPropertyInjected()
 {
     var context = CreateContext();
     var page = new UnsetPropertyInjectedPage();
     var target = new AttributedInjectionModule();
     var injector = target.GetInjectionBehavior(page);
     Assert.IsNotNull(injector);
     injector.InjectDependencies(context, page);
     Assert.AreEqual(ContextSuppliedString, page.Property);
 }
        public void UnsetPropertyInjected()
        {
            var context  = CreateContext();
            var page     = new UnsetPropertyInjectedPage();
            var target   = new AttributedInjectionModule();
            var injector = target.GetInjectionBehavior(page);

            Assert.NotNull(injector);
            injector.InjectDependencies(context, page);
            Assert.Equal(ContextSuppliedString, page.Property);
        }
        public void PropertyNotInjectedWhenValueSet()
        {
            var context = CreateContext();
            var page    = new UnsetPropertyInjectedPage();

            page.Property = ExplicitlyProvidedString;
            var target   = new AttributedInjectionModule();
            var injector = target.GetInjectionBehavior(page);

            Assert.NotNull(injector);
            injector.InjectDependencies(context, page);
            Assert.Equal(ExplicitlyProvidedString, page.Property);
        }
 public void PropertyNotInjectedWhenValueSet()
 {
     var context = CreateContext();
     var page = new UnsetPropertyInjectedPage();
     page.Property = ExplicitlyProvidedString;
     var target = new AttributedInjectionModule();
     var injector = target.GetInjectionBehavior(page);
     Assert.IsNotNull(injector);
     injector.InjectDependencies(context, page);
     Assert.AreEqual(ExplicitlyProvidedString, page.Property);
 }