public void Should_Throw_Exception_When_No_Base_Rate_Found()
        {
            //Arrange
            _baseRateRepository.Setup(x => x.GetBaseRateForBalance(1000)).Returns((BaseRate)null);

            //Act & Assert
            Exception ex = Assert.Throws <Exception>(() => _sut.GetInterestRate(1000));

            Assert.Equal("No base rate found for balance", ex.Message);
        }
        public void GetInterestRate_WhenCalled_ReturnTheInterestRate()
        {
            float rate = _interestRateService.GetInterestRate();

            Assert.IsNotNull(rate);
        }
 public float Get()
 {
     return(_interestRateService.GetInterestRate());
 }