Exemplo n.º 1
0
        public static void OneTimeApiSetup(TestContext testContext)
        {
            testContext.TestParameters = JsonFileReader <Dictionary <string, string> > .LoadJson("testParameters.json");

            testContext.CarsRepository = JsonFileReader <List <CarInfo> > .LoadJson("TestData\\CarsRepository.json");

            testContext.ApiUrlHostName = testContext.TestParameters["apiHostName"];
            testContext.ApiClient      = new RestClient(testContext.ApiUrlHostName);
        }