public async Task Should_CreateItemAsync_When_Collection_IsNull()
        {
            var model    = new MathMultiplyOperationModel();
            var request  = TestFactory.CreateHttpRequest("0", "0");
            var response = (OkObjectResult)await TestMathStartMultiply.Run(request, logger);

            Assert.Equal("Result: 0", "Result: " + ((Quest_Project.Models.MathMultiplyOperationModel)response.Value).Result);
        }
示例#2
0
 /// <inheritdoc/>
 public void Multiply(MathMultiplyOperationModel operationModel)
 {
     operationModel.Result = operationModel.Multiplicand * operationModel.Multiplier;
 }