Пример #1
0
        public void ShouldRemoveInpection()
        {
            using (var context = InitAndGetDbContext())
            {
                //Arrange
                var repositori = new InspectionRepository(context);

                //Act
                repositori.Delete(testId);
                Inspection result = repositori.Find(testId);

                //Assert
                Assert.False(result.Active);
            }
        }
 public ActionResult DeleteConfirmed(int id)
 {
     inspectionRepository.Delete(id);
     return(RedirectToAction("Index"));
 }