예제 #1
0
        public void ShouldCalculateTotalMoneyAvailableWithNoLenders()
        {
            var lenders     = new List <Lender>();
            var lendersList = new LendersList(lenders);

            Assert.That(lendersList.TotalMoneyAvailable(), Is.EqualTo(0));
        }
예제 #2
0
        public void TestSetup()
        {
            var lenders = new List <Lender>();

            lenders.Add(new Lender("Eve", 0.2, 2000));
            lenders.Add(new Lender("Ada", 0.1, 1000));
            lenders.Add(new Lender("Oto", 0.4, 4000));
            lendersList = new LendersList(lenders);
        }
예제 #3
0
        public void ShouldCalculateTotalMoneyAvailable()
        {
            var lenders = new List <Lender>();

            lenders.Add(new Lender("Ada", 0.1, 1000));
            lenders.Add(new Lender("Oto", 0.4, 4000));
            var lendersList = new LendersList(lenders);

            Assert.That(lendersList.TotalMoneyAvailable(), Is.EqualTo(5000));
        }