public void WholesalerServiceDelete_UnitOfWorkDeleteAndComplete_ReturnsUnitOfWorkDeleteAndComplete() { var wholesaler = new Wholesaler() { Name = "Test" }; _uow.Wholesalers.Get(1).Returns(wholesaler); _wholesalerService.Delete(1); _uow.Received().Wholesalers.Update(wholesaler); _uow.Received().Complete(); Assert.That(wholesaler.IsDeleted, Is.EqualTo(true)); }