public void MethodDeleteShould_CallUnitOfWorkMethodCommit() { var booking = new Booking() { Id = Guid.NewGuid() }; var service = new BookingsService(repositoryMock.Object, unitOfWorkMock.Object, factoryMock.Object, restaurantsServiceMock.Object); service.Delete(booking); unitOfWorkMock.Verify(r => r.Commit(), Times.Once); }