Beispiel #1
0
        public void Setup()
        {
            TransactionManager.DeleteEntities <Receipt>();
            TransactionManager.DeleteEntities <Pet>();
            TransactionManager.DeleteEntities <Approval>();

            EmailServerServiceFactory.UseEmailServer(new MockEmailServerService());
        }
 public static Approval FindApprovalByEmail(string customerEmail)
 {
     return(TransactionManager.FindWhere <Approval>(app => app.CustomerEmail.Equals(customerEmail)).FirstOrDefault());
 }
 public static List <Approval> FindApprovalsByApprovalState(ApprovalState approvalState)
 {
     return(TransactionManager.FindWhere <Approval>(app => app.ApprovalState == approvalState).ToList());
 }