public CalculationResultItemModel GetResult(CalculationDTO dto) { CalculationResultItemModel Model = new CalculationResultItemModel(); Model.Expression = dto.Expression; Model.Result = dto.Result; return(Model); }
public void Sum33_33_66() { requestMethod = ApiRequestMethod.GET; response = client.MakeApiRequestAsync("/Api/values?a=22&b=22", requestMethod); result = response.Result; model = result.Deserialize <CalculationResultItemModel>(); Assert.IsNotNull(model); Assert.AreEqual(44, model.Result); }