public void AddingTwoDecimalsShouldAddCorrectly()
        {
            var result = mathService.AddTwoDecimals(1.0m, 2.5m);

            Assert.True(3.5m == result);
        }
Esempio n. 2
0
 public ActionResult <decimal> Post([FromBody] TwoNumbers model)
 {
     return(_mathService.AddTwoDecimals(model.A, model.B));
 }