Exemple #1
0
        public void ICan_GetAnInstance_PreviouslyInjected()
        {
            DiContainer di = new DiContainer();
            var myTestClass = new MyTestClass1();
            di.Register(myTestClass);

            Assert.Equal(myTestClass, di.Get<MyTestClass1>());
        }
Exemple #2
0
 protected bool Equals(MyTestClass1 other)
 {
     return _value == other._value;
 }