public void TestMultiplyNumbers(int x, int y, int expectedResult) { var cs = new CalcService(); var actualResult = cs.MultiplyNumbers(x, y); Assert.Equal(expectedResult, actualResult); }
public ActionResult Multiply(CalcViewModel model) { var cs = new CalcService(); var result = cs.MultiplyNumbers(model.Number1, model.Number2); model.Result = result; return(View("Process", model)); }