public void EditBootcampTest()
        {
            repo.EditBootcamp(mock.mockBootcamp);
            var result = repo.GetBootcampByID(1).Name;

            Assert.AreEqual("App Academy", result);
        }
예제 #2
0
 public HttpResponseMessage Put(Bootcamp bootcamp)
 {
     if (base.ModelState.IsValid)
     {
         _bootcampRepo.EditBootcamp(bootcamp);
         return(new HttpResponseMessage(HttpStatusCode.OK));
     }
     return(base.Request.CreateErrorResponse(HttpStatusCode.BadRequest, base.ModelState));
 }