Example #1
0
        public void GetEmployeeByValidIdIsPossible()
        {
            CreateANumberOfEmployees();
            var ids          = _sut.GetActualIds(_client);
            var response     = _sut.GetEntityById(_client, ids[0]);
            var employeeById = JsonConvert.DeserializeObject <EntityModel>(response.Content);

            StringAssert.StartsWith(ExpectedEmployeeName, employeeById.Name, "Expected Employee name differs from the actual one.");
        }