Exemplo n.º 1
0
        public CalculateResponse Calculate(CalculateRequest request)
        {
            ForecastRequestDto  requestDto  = _requestMapper.MapCalculation(request);
            ForecastResponseDto responseDto = _orchestrator.CalculateAnnualGrowth(requestDto);

            return(_responseMapper.MapCalculationResponse(responseDto));
        }
Exemplo n.º 2
0
        public void ThenValidationServiceIsCalled()
        {
            //Arrange
            var request = CreateRequest();

            //Act
            _service.CalculateAnnualGrowth(request);

            //Assert
            _validationService.Verify(x => x.Validate(request));
        }