Ejemplo n.º 1
0
        public void Setup()
        {
            TransactionManager.DeleteEntities <Receipt>();
            TransactionManager.DeleteEntities <Pet>();
            TransactionManager.DeleteEntities <Approval>();

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