protected override GlobalClassBase OnSetup() { var class2 = new GlobalClass<Class2>(); class2.Setup(the => { the.Method( (string value) => { throw new NotImplementedException(); return default(string); }). Instead(_ => _.ReturnTrimedStringIfContainsB); }); return class2; }
protected override GlobalClassBase OnSetup() { var class1 = new GlobalClass<Class1>(); class1.Setup(the => { the.Method( (string value) => { return value + value + value; }). Instead(_ => _.DoNothing); the.Method( (string value) => { return value; }). Instead(_ => _.Return3TimesIfValueContainsA); }); return class1; }