public ActionResult Edit(Release release) { if (ModelState.IsValid) { context.Entry(release).State = EntityState.Modified; context.SaveChanges(); return RedirectToAction("Index"); } return View(release); }
public ActionResult Create(Release release) { if (ModelState.IsValid) { context.Releases.Add(release); context.SaveChanges(); return RedirectToAction("Index"); } return View(release); }
public void Can_assign_a_release_to_a_project() { var sut = new Project(); var release = new Release(); sut.Releases.Add(release); Assert.AreEqual(1, sut.Releases.Count); }
public void Can_assign_a_board_to_a_release() { var sut = new Release(); var board = new Board(); sut.Boards.Add(board); Assert.AreEqual(1, sut.Boards.Count); }
public void Can_add_a_release() { var sut = new Release(); Assert.IsNotNull(sut); }