public void DeleteExistingDoc()
        {
            // Arrange
            ShippingDocumentService service = new ShippingDocumentService();

            // Act
            var countBefore = service.FindAll().Count;
            var doc         = service.Create();

            service.Delete(doc);
            var countAfter = service.FindAll().Count;

            // Assert
            Assert.AreEqual(countBefore, countAfter);
        }
        public void FindAllTest()
        {
            // Arrange
            Mock <IShippingDocumentRepository> repositoryMock = new Mock <IShippingDocumentRepository>();
            ShippingDocumentService            service        = new ShippingDocumentService(repositoryMock.Object);

            // Act
            service.FindAll();

            // Assert
            repositoryMock.Verify(k => k.FindAll(), Times.Once());
        }