Beispiel #1
0
        public MyClassTest()
        {
            var options = new MyOptions {
                Name = "catcher"
            };

            var fake = Substitute.For <IOptions <MyOptions> >();

            fake.Value.Returns(options);

            myClass = new MyClass(fake);
        }
Beispiel #2
0
 public MyClass(IOptions <MyOptions> optionsAcc)
 {
     this._options = optionsAcc.Value;
 }