public void GetAllExistingEmployeesIsPossible() { CreateANumberOfEmployees(3); var response = _sut.GetAllEntities(_client); var parsed = _sut.ParseEntityResponse(response); Assert.That(parsed.Count, Is.EqualTo(3), NumberOfExistingEmployeesErrorMessage); }
public void GetAllExistingEmployeesWithInvalidTokenIsNotAllowed() { CreateANumberOfEmployees(); _sut = new RESTHelper(false); var response = _sut.GetAllEntities(_client); Assert.That(response.StatusCode, Is.EqualTo(HttpStatusCode.Unauthorized), "Get all existing Employees with the invalid token was allowed, but should not have been."); }