Open kostenray opened 4 years ago
i see the sample : Shim ctorShim = Shim.Replace(() => new MyClass()).With(() => new MyClass() { MyProperty = 10 });
what if the constructor has input parameters, is the following correct?
Shim ctorShim = Shim.Replace(() => new MyClass(Is.A)).With((string conn) => new MyClass(conn) { });
i see the sample : Shim ctorShim = Shim.Replace(() => new MyClass()).With(() => new MyClass() { MyProperty = 10 });
what if the constructor has input parameters, is the following correct?
Shim ctorShim = Shim.Replace(() => new MyClass(Is.A)).With((string conn) => new MyClass(conn) { });