void TestRequestsRepository() { var newrequest = new Requests() { Description = "ZZZ", Justification = "ZZZ", RejectionReason = null, DeliveryMode = "Pickup", UserId = UsersRepository.GetByPk(2).Id }; if (!RequestsRepository.Insert(newrequest)) { throw new Exception("Request insert failed!"); } DisplayAllRequests(); newrequest.Description = "YYY"; if (!RequestsRepository.Update(newrequest)) { throw new Exception("Request update failed!"); } DisplayAllRequests(); if (!RequestsRepository.Delete(newrequest)) { throw new Exception("Request delete failed!"); } DisplayAllRequests(); }