public void Assert_database_empty_after_adding_then_rejecting_changes() { unitOfWork.CustomerRepository.Add(customer); unitOfWork.RejectChanges(); unitOfWork.Commit(); List <Customer> result = unitOfWork.CustomerRepository.Entities.ToList <Customer>(); Assert.IsEmpty(result); }