コード例 #1
0
        public void GiveSuchAQuoteWhenLoanAmountIs2100()
        {
            var filePath      = string.Empty;
            var expectedQuote = new Quote
            {
                RequestAmount    = 2100,
                Rate             = 0.073,
                MonthlyRepayment = 72.06,
                TotalRepayment   = 2594.29
            };

            _sourceProvider.GetSource(filePath).ReturnsForAnyArgs(_offers);
            _quoteProvider.CreateQuote(filePath, "2100").ShouldBeEqualTo(expectedQuote);
            _sourceProvider.Received(1).GetSource(filePath);
        }