public void EditBootcampTest() { repo.EditBootcamp(mock.mockBootcamp); var result = repo.GetBootcampByID(1).Name; Assert.AreEqual("App Academy", result); }
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)); }