public void MultiplyTest() { var controller = new MathController(new MathDbRepository()); var id = controller.Multiply(value1, value2); var result = controller.GetResultById((int)id); Assert.AreEqual(result, 18); }
public void Product_9_14_Returns126() { // Arrange MathController controller = new MathController(); int x = 9, y = 14; // Act int result = controller.Multiply(x, y); // Assert Assert.Equal(126, result); }