Ejemplo n.º 1
0
        public void TestUpdateExistingCourse()
        {
            int    difficultyCount = testCourse1.DifficultyCount;
            double difficulty      = testCourse1.Difficulty;

            _client.UpdateExistingCourse("Test Id 1", 1, "Some Instructor Name", 1);
            Assert.AreNotEqual(difficultyCount, updatedCourse.DifficultyCount);
            Assert.AreNotEqual(difficulty, updatedCourse.Difficulty);
        }
Ejemplo n.º 2
0
 public async void UpdateExistingCourse(string id, int newDifficulty, string instructorName, int newRating)
 {
     _logger.LogInformation("Begin CoursesController PUT Update Existing Course");
     _dbClient.UpdateExistingCourse(id.ToUpper(), newDifficulty, instructorName, newRating);
     _logger.LogInformation("Finish CoursesController PUT Update Existing Course");
 }