public void RespectsKeys() { var builder = new StyletIoCBuilder(); builder.Bind <C1>().ToSelf().WithKey("key"); var ioc = builder.BuildContainer(); var subject = new Subject5(); ioc.BuildUp(subject); Assert.IsInstanceOf <C1>(subject.C1); }
public void RespectsKeys() { var builder = new StyletIoCBuilder(); builder.Bind<C1>().ToSelf().WithKey("key"); var ioc = builder.BuildContainer(); var subject = new Subject5(); ioc.BuildUp(subject); Assert.IsInstanceOf<C1>(subject.C1); }