Beispiel #1
0
        public void RemoveDocument_RemovesDocument()
        {
            var init = _context.Documents.Count();

            var document = _context.Documents.SingleOrDefault(x => x.Description == "Doc1");

            Assert.IsNotNull(document);

            _controller.RemoveDocument(document.Id);

            var result = _context.Documents.Count();

            Assert.AreEqual(init - 1, result);
        }