public MyClassTest() { var options = new MyOptions { Name = "catcher" }; var fake = Substitute.For <IOptions <MyOptions> >(); fake.Value.Returns(options); myClass = new MyClass(fake); }
public MyClass(IOptions <MyOptions> optionsAcc) { this._options = optionsAcc.Value; }