Example #1
0
            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();
            }
Example #2
0
            public void Binds()
            {
                var instance = new Gluee();

                var glue = new BindOptions <Gluee, IGlue>()
                           .MapMethod(e => e.NeedsGlueing(default), e => e.GlueMe(default))