Exemple #1
0
 protected override void Because()
 {
     PollingClient.Start();
     Task.Factory.StartNew(() =>
     {
         for (int i = 0; i < 15; i++)
         {
             StoreEvents.Advanced.CommitSingle();
         }
     });
 }
 protected override Task Because()
 {
     PollingClient.Start();
     return(Task.Run(
                async() =>
     {
         for (int i = 0; i < 15; i++)
         {
             await StoreEvents.Advanced.CommitSingleAsync();
         }
     }));
 }
Exemple #3
0
 protected override void Because()
 {
     PollingClient.Start();
     StoreEvents.Advanced.CommitSingle();
 }
Exemple #4
0
 protected override void Because()
 {
     PollingClient.Start();
 }
 protected override Task Because()
 {
     PollingClient.Start();
     return(Task.CompletedTask);
 }
 protected override Task Because()
 {
     PollingClient.Start();
     return(StoreEvents.Advanced.CommitSingleAsync());
 }