Esempio n. 1
0
 public ActionResult Edit(Release release)
 {
     if (ModelState.IsValid)
     {
         context.Entry(release).State = EntityState.Modified;
         context.SaveChanges();
         return RedirectToAction("Index");
     }
     return View(release);
 }
Esempio n. 2
0
        public ActionResult Create(Release release)
        {
            if (ModelState.IsValid)
            {
                context.Releases.Add(release);
                context.SaveChanges();
                return RedirectToAction("Index");
            }

            return View(release);
        }
Esempio n. 3
0
        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);
        }
Esempio n. 4
0
        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);
        }
Esempio n. 5
0
        public void Can_add_a_release()
        {
            var sut = new Release();

            Assert.IsNotNull(sut);
        }