public void PropertyInjected() { var context = CreateContext(); var page = new PropertyInjectedPage(); var target = new AttributedInjectionModule(); var injector = target.GetInjectionBehavior(page); Assert.IsNotNull(injector); injector.InjectDependencies(context, page); Assert.AreEqual(ContextSuppliedString, page.Property); }
public void PropertyInjected() { var context = CreateContext(); var page = new PropertyInjectedPage(); var target = new AttributedInjectionModule(); var injector = target.GetInjectionBehavior(page); Assert.NotNull(injector); injector.InjectDependencies(context, page); Assert.Equal(ContextSuppliedString, page.Property); }
public void PropertyInjectedValueSet() { var context = CreateContext(); var page = new PropertyInjectedPage(); page.Property = ExplicitlyProvidedString; var target = new AttributedInjectionModule(); var injector = target.GetInjectionBehaviour(page); Assert.IsNotNull(injector); injector.InjectDependencies(context, page); Assert.AreEqual(ContextSuppliedString, page.Property); }