public void Assert_that_customer_exists_after_adding() { unitOfWork.CustomerRepository.Add(customer); unitOfWork.Commit(); List <Customer> result = unitOfWork.CustomerRepository.Entities.ToList <Customer>(); Assert.IsNotEmpty(result); }
private void SaveUserLog(long userId, LogType logType) { var userLog = new UserLogModel { UserId = userId, LogType = logType, DateTime = DateTime.Now }; DatabaseUnitOfWork.UserLogRepository.Add(userLog); DatabaseUnitOfWork.Commit(); }