public void Test_AddPublisher_With_Same_CompanyName()
        {
            //arrange
            PublisherService service = new PublisherService(_unitOfWork.Object);
            PublisherDTO publisher = new PublisherDTO() { CompanyName = "name1", PublisherId = 1};

            //act
            service.AddPublisher(publisher);
        }
        public void Test_AddPublisher_Call_Insert()
        {
            //arrange
            PublisherService service = new PublisherService(_unitOfWork.Object);
            PublisherDTO publisher = new PublisherDTO() { CompanyName = "name", PublisherId = 1 };

            //act
            service.AddPublisher(publisher);

            //assert
            _publisherRepository.Verify( p => p.Insert(It.IsAny<Publisher>()), Times.Once() );
        }