public async Task Scenario1() { IPerson person = TestData.PrepareTestData_Scenario_1(); float totalInterest = person.CalculatePersonInterest(); Assert.Equal(16.0F, totalInterest); }
public async Task Scenario2() { IPerson person = TestData.PrepareTestData_Scenario_2(); float totalInterest = person.CalculatePersonInterest(); Assert.Equal(16.0F, totalInterest); //total interest Assert.Equal(11.0F, person.Wallets[0].CalculateWalletInterest()); Assert.Equal(5.0F, person.Wallets[1].CalculateWalletInterest()); ////foreach (var wallet in person.Wallets) ////{ // float walletInterest = wallet.CalculateWalletInterest(); //} }