public void ChangeCalculator_Successed( int amount, int pay, int expectedChange, int thousandAmount = 0, int fiveHundredAmount = 0, int hundredAmount = 0, int fiftyAmount = 0, int twentyAmount = 0, int fiveAmount = 0, int oneAmount = 0) { var result = calculator.Change(amount, pay); Assert.Equal(expectedChange, result.Change); Assert.Equal(thousandAmount, result.ThousandAmount); Assert.Equal(fiveHundredAmount, result.FiveHundredAmount); Assert.Equal(hundredAmount, result.OneHundredAmount); Assert.Equal(fiftyAmount, result.FiftyAmount); Assert.Equal(twentyAmount, result.TwentyAmount); Assert.Equal(fiveAmount, result.FiveAmount); Assert.Equal(oneAmount, result.OneAmount); }
public ChangeResponse Get(int amount, int pay) { var calculate = new ChangeCalculator(); return(calculate.Change(amount, pay)); }