コード例 #1
0
        public void GetPercentCourse_ShouldReturnBadRequest_IfNullUsername()
        {   
            var learningHandler = new LearningHandler();
            var response = learningHandler.GetPercentCourse(null, "course");
            Assert.AreEqual(response., HttpStatusCode.BadRequest;

        }
コード例 #2
0
        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);
        }