Example #1
0
 protected override async Task RunScenario()
 {
     for (var i = 200; i < 400; i++)
     {
         ClosedPcts.Add(TestSubject.ClosedPct);
         ShouldAccepts.Add(TestSubject.ShouldAccept());
         TestSubject.LogSuccessResponse(i.ToString());
         await Task.Delay(5);
     }
 }
Example #2
0
        protected override async Task RunScenario()
        {
            for (var i = 0; i < 100; i++)
            {
                ClosedPcts.Add(TestSubject.ClosedPct);
                ShouldAccepts.Add(TestSubject.ShouldAccept());
                TestSubject.LogFailureResponse(HttpStatusCode.InternalServerError.ToString());
                await Task.Delay(5);
            }

            for (var i = 0; i < 100; i++)
            {
                ClosedPcts.Add(TestSubject.ClosedPct);
                ShouldAccepts.Add(TestSubject.ShouldAccept());
                TestSubject.LogSuccessResponse(HttpStatusCode.OK.ToString());
                await Task.Delay(5);
            }
        }