public void Binds() { var instance = new Gluee(); var glue = new BindOptions <Gluee, IGlue>() .MapMethod(e => e.NeedsGlueing(), e => e.GlueMe()) .Build(new BindAssembly()) .NewBind(instance); glue.GlueMe(); instance.MethodCalled .Should() .BeTrue(); }
public void Binds() { var instance = new Gluee(); var glue = new BindOptions <Gluee, IGlue>() .MapMethod(e => e.NeedsGlueing(default), e => e.GlueMe(default))