public void ShouldCalculateTotalMoneyAvailableWithNoLenders() { var lenders = new List <Lender>(); var lendersList = new LendersList(lenders); Assert.That(lendersList.TotalMoneyAvailable(), Is.EqualTo(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); }
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)); }