public void WhenUserIsSetUpAsATeacher() { WhenUserIsAttemptedToBeSetUpAsATeacher(); Assert.AreEqual(HttpStatusCode.Created, ScenarioCache.GetResponseStatus()); var teacher = ScenarioCache.GetActionResponse <TeacherModel>(); ScenarioCache.Store(ModelIdKeys.TeacherId, teacher.Id); }
public void ThenValidationErrorsAreReturned() { Assert.AreEqual(HttpStatusCode.BadRequest, ScenarioCache.GetResponseStatus()); Assert.IsFalse(ScenarioCache.GetValidationResult().IsValid); }
public void ThenTheRequestReturnsNotFound() { var httpStatusCode = ScenarioCache.GetResponseStatus(); Assert.AreEqual(HttpStatusCode.NotFound, httpStatusCode); }
public void ThenTheRequestIsUnsuccessful() { var httpStatusCode = ScenarioCache.GetResponseStatus(); Assert.AreEqual(HttpStatusCode.BadRequest, httpStatusCode); }
public void ThenTheRequestIsSuccessful() { var httpStatusCode = ScenarioCache.GetResponseStatus(); Assert.Contains(httpStatusCode, new[] { HttpStatusCode.OK, HttpStatusCode.Created }); }
public void ThenCheckInIsSuccessful() { Assert.AreEqual(HttpStatusCode.OK, ScenarioCache.GetResponseStatus());; }