Exemple #1
0
 protected override void Configure(IApplicationBuilder appBuilder)
 {
     appBuilder.UseBolt(
         b =>
             {
                 // we are using IDummy inteface on server and IDummyAsync on client, calls should be properly mapped
                 MockInstanceProvider instanceProvider = new MockInstanceProvider { CurrentInstance = Contract.Object };
                 b.Use<IDummy>(instanceProvider);
             });
 }
Exemple #2
0
 protected override void Configure(IApplicationBuilder appBuilder)
 {
     appBuilder.UseBolt(
         b =>
     {
         // we are using IDummy inteface on server and IDummyAsync on client, calls should be properly mapped
         MockInstanceProvider instanceProvider = new MockInstanceProvider {
             CurrentInstance = Contract.Object
         };
         b.Use <IDummy>(instanceProvider);
     });
 }