public static async Task <bool> VerifyLender(LenderInformation lenderInformation)
 {
     if (lenderInformation.lenderName == "Quicken Loans")
     {
         return(true);
     }
     return(false);
 }
Пример #2
0
        public Order RandomOrder()
        {
            const int NAMES = 5;

            string[] firstNames = { "John", "Jane", "Joe", "Jen", "Bob", "Beth" };
            string[] lastNames  = { "Smith", "Stone", "Doe", "Miller", "Davis", "Wilson" };

            Random random = new Random();

            orderType   = (OrderType)(random.Next() % Enum.GetNames(typeof(OrderType)).Length);
            orderStatus = OrderStatus.Initial;

            clientInformation = new ClientInformation {
                clientAddressOne  = random.Next(100, 5000).ToString() + " Main St",
                clientAddressTwo  = "Apt " + random.Next(100, 700).ToString(),
                clientFName       = firstNames[random.Next(NAMES)],
                clientLName       = lastNames[random.Next(NAMES)],
                clientCreditScore = random.Next(550, 850),
                clientSSN         = random.Next(100000000, 999999999),
                clientState       = "PA",
                clientZip         = random.Next(10000, 99999),
                employementStatus = (EmployementStatus)(random.Next() % Enum.GetNames(typeof(EmployementStatus)).Length)
            };

            lenderInformation = new LenderInformation
            {
                lenderName       = "Quicken Loans",
                lenderAddressOne = random.Next(100, 5000).ToString() + " 1st St",
                lenderAddressTwo = "Suite " + random.Next(100, 700).ToString(),
                lenderState      = "MI",
                lenderZip        = 48226
            };

            if (random.Next(550) % 2 == 0)
            {
                documents = new List <Document>();
                documents.Add(new Document
                {
                    documentNameHash    = "DocumentHashName",
                    documentBaseSixFour = "DocumentBase64",
                    documentExtension   = "pdf",
                    documentPath        = random.Next(50) % 2 == 0? ".\\Files\\TestFileOne.txt" : ".\\Files\\TestFileTwo.txt",
                    documentType        = (DocumentType)(random.Next() % Enum.GetNames(typeof(DocumentType)).Length)
                });
            }
            return(this);
        }