예제 #1
0
        public void FetchByServiceForProperty()
        {
            TestBuilder builder = new TestBuilder();

            builder
            .AddDependencyService <ExampleDataThing>()
            .AddTestBlock <ExampleTestBlockWithPropertyForOwnType>()
            .ExecuteTestCase();
        }
예제 #2
0
        public void FetchByFactoryForExecuteArg()
        {
            TestBuilder builder = new TestBuilder();

            builder
            .AddDependencyService <ExampleDataThing>(new ExampleDataThingFactory().ExampleDataThing)
            .AddTestBlock <ExampleTestBlockForFactoryWithExecuteArg>()
            .ExecuteTestCase();
        }
예제 #3
0
        public void AddTwoServicesOfSameTypeToServiceAndFetch()
        {
            TestBuilder builder = new TestBuilder();

            builder
            .AddDependencyService <ExampleDataThing>()
            .AddDependencyService <ExampleDataThing>()
            .AddTestBlock <ExampleTestBlockWithExecuteArgForOwnType>()
            .ExecuteTestCase();
        }
예제 #4
0
        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();
        }
예제 #5
0
        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();
        }