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 PropertyNotInjected()
 {
     var context = CreateContext();
     var page = new NonInjectedPage();
     var target = new AttributedInjectionModule();
     var injector = target.GetInjectionBehavior(page);
     Assert.IsNotNull(injector);
     injector.InjectDependencies(context, page);
     Assert.IsNull(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);
 }