Пример #1
0
        public void Delete()
        {
            var dbContext = SetUpThreeCases("test-delete");

            using (var context = new CaseContext(dbContext))
            {
                var repository = new CaseRepository(context);

                var before = repository.FindAll();

                Assert.AreEqual(3, before.Count);

                repository.Delete("test docket number two");

                var after = repository.FindAll();

                Assert.AreEqual(2, after.Count);
            }
        }