public async Task Next(Benchmark benchmark) { Console.WriteLine(TestCaseConfiguration.TestCaseType); // Create test case using test case factory benchmark.Context.TestCase = TestCaseFactory.Create( TestCaseConfiguration.TestCaseType, benchmark.Context.MessageCaptureContext ); // Set next state await benchmark.SetNext(new CreateBusControl()); }
public void Should_ThrowErrorWhenTryingToCreateUndefinedTestCase() { Assert.Throws <ArgumentOutOfRangeException>(() => TestCaseFactory.Create(0, null)); }
public void Should_CreateTestsCaseOfTypeWebShop() { var testCase = TestCaseFactory.Create(TestCaseType.WebShop, null); Assert.IsType <WebshopTestCase>(testCase); }
public void Should_CreateTestsCaseOfTypeConsumeConsumer() { var testCase = TestCaseFactory.Create(TestCaseType.ConsumeConsumer, null); Assert.IsType <ConsumeConsumerTestCase>(testCase); }
public void Should_CreateTestsCaseOfTypeRequestResponse() { var testCase = TestCaseFactory.Create(TestCaseType.RequestResponse, null); Assert.IsType <RequestResponseTestCase>(testCase); }