Esempio n. 1
0
        private static RequestLoanService CreateRequestLoanService()
        {
            var loanOfferFactory    = new LoanOfferFactory();
            var loanOfferRepository = new LoanOfferDynamoDbRepository(loanOfferFactory);
            var emailConfig         = new EnvironmentVariablesEmailServiceConfig();
            var emailService        = new SesEmailNotificationService(emailConfig);
            var service             = new RequestLoanService(loanOfferRepository, emailService);

            return(service);
        }
        private static RequestLoanService CreateRequestLoanService()
        {
            var loanOfferFactory    = new LoanOfferFactory();
            var loanOfferRepository = new LoanOfferSQLiteRepository(loanOfferFactory);
            //TODO:
            //var emailConfig = new EnvironmentVariablesEmailServiceConfig();
            var emailService = new FakeEmailNotificationService();
            var service      = new RequestLoanService(loanOfferRepository, emailService);

            return(service);
        }