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