public void ChooseConstructorWithAttribute() { SimpleContainer c = new SimpleContainer(); c.RegisterType <IQux, Qux>(false); IQux qux = c.Resolve <IQux>(); Assert.Equal(1, qux.getA()); Assert.Equal(999, qux.getB()); }
public void Initialize(IQux qux) { this.Qux = qux; }