Beispiel #1
0
        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());
        }
Beispiel #2
0
 public void Initialize(IQux qux)
 {
     this.Qux = qux;
 }