Beispiel #1
0
        public void ThenTheSalaryIncreaseWillBeReflectedInTheDatabase()
        {
            var resCompanies = new RestCall <List <Company> >(Method.GET, (string)context["baseUrl"], "")
                               .Execute()
                               .Data;

            //using the companies in context from the first step
            foreach (var contextCompany in (List <Company>)context["companies"])
            {
                var resCompany = resCompanies.Find(e => e.companyName.Equals(contextCompany.companyName));
                contextCompany.employees.Should().BeEquivalentTo(resCompany.employees);
            }
        }