public void DepositTest() { var foolApp = new Fool("Segun", 1000, 6, 5); string depo = foolApp.Deposit("Segun", 2000, 100, 5); Assert.Equal($"(Welcome Segun, your total should be ready in January. Thanks)", depo); }
public void TotalTest() { var foolApp = new Fool("Segun", 1000, 6, 5); decimal total = foolApp.Total(1000, 40, 6); Assert.Equal(8400, total); }
public void NetInterestTest() { var foolApp = new Fool("Segun", 1000, 6, 5); decimal intT = foolApp.NetInterest(40, 6); Assert.Equal(2400, intT); }
public void TwoTotalTest() { var foolApp = new Fool("Segun", 1000, 6, 5); decimal total = foolApp.Total(1000, 40, 6); var doubleTotal = total * 2; Assert.Equal(16800, doubleTotal); }
private static Task Send(Fool fool, SimpleTestMessage sentMessage, Action<SimpleTestMessage, SimpleTestMessage> work) { return fool.DoWork(sentMessage, m => { work(m, sentMessage); }); }
private Fool(string name, Fool mate) : this(name, 0, 10.9D, mate) { }
public Fool(string name, int age, Double money, Fool mate) : this(name, age, money) { _mate = mate; }