public void GetPercentCourse_ShouldReturnBadRequest_IfNullUsername() { var learningHandler = new LearningHandler(); var response = learningHandler.GetPercentCourse(null, "course"); Assert.AreEqual(response., HttpStatusCode.BadRequest; }
public void UpdateLearningCourses_ShouldReturnBadResponse_GivenNullUsername() { var learningHandler = new LearningHandler(); var request = new HttpRequestMessage(); Task<HttpResponseMessage> response = learningHandler.UpdateLearningCourses(null, request); Assert.AreEqual(response, HttpStatusCode.BadRequest); }