public void FetchByServiceForProperty() { TestBuilder builder = new TestBuilder(); builder .AddDependencyService <ExampleDataThing>() .AddTestBlock <ExampleTestBlockWithPropertyForOwnType>() .ExecuteTestCase(); }
public void FetchByFactoryForExecuteArg() { TestBuilder builder = new TestBuilder(); builder .AddDependencyService <ExampleDataThing>(new ExampleDataThingFactory().ExampleDataThing) .AddTestBlock <ExampleTestBlockForFactoryWithExecuteArg>() .ExecuteTestCase(); }
public void AddTwoServicesOfSameTypeToServiceAndFetch() { TestBuilder builder = new TestBuilder(); builder .AddDependencyService <ExampleDataThing>() .AddDependencyService <ExampleDataThing>() .AddTestBlock <ExampleTestBlockWithExecuteArgForOwnType>() .ExecuteTestCase(); }
public void RegisterMembership() { TestBuilder builder = new TestBuilder(); builder .AddDependencyService <IWebDriver>(new WebDriverFactory("Chrome").Driver) .AddDependencyService <Harness.IntelliTectWebpage>() .AddTestBlock <TestBlocks.RegisterAndReturnNewAccount>("NewTester", "McTest") .AddTestBlock <TestBlocks.VerifyAccountRegisteredCorrectly>() .ExecuteTestCase(); }
public void LogIn() { TestBuilder builder = new TestBuilder(); builder .AddDependencyService <IWebDriver>(new WebDriverFactory("Chrome").Driver) .AddDependencyService <Account>(new AccountFactory().Account) .AddDependencyService <Harness.IntelliTectWebpage>() .AddTestBlock <TestBlocks.LogIn>() .AddTestBlock <TestBlocks.VerifyAccountSummary>() .ExecuteTestCase(); }