public SetUnitTestDisableResponseDto SetUnitTestDisable(SetUnitTestDisableRequestDto request)
        {
            var coreRequest = GetCoreRequest <Zidium.Core.Api.SetUnitTestDisableRequest>(request);

            coreRequest.Data = AdapterDataConverter.ConvertToCore(request.Data);

            var coreResponse = Dispatcher.SetUnitTestDisable(coreRequest);

            var response = GetApiResponse <SetUnitTestDisableResponseDto>(coreResponse);

            response.Data = coreResponse.InternalData;
            return(response);
        }
Example #2
0
        public SetUnitTestDisableResponse SetUnitTestDisable(Guid unitTestId, SetUnitTestDisableRequestData data)
        {
            if (data == null)
            {
                throw new ArgumentNullException("data");
            }
            var dataDto = new SetUnitTestDisableRequestDtoData()
            {
                UnitTestId = unitTestId
            };
            var request = new SetUnitTestDisableRequestDto()
            {
                Data  = dataDto,
                Token = GetAccessTokenDto()
            };
            var responseDto = DtoService.SetUnitTestDisable(request);
            var response    = CreateResponse <SetUnitTestDisableResponse>(responseDto);

            response.InternalData = responseDto.Data;
            return(response);
        }
 public SetUnitTestDisableResponseDto SetUnitTestDisable(SetUnitTestDisableRequestDto request)
 {
     return(ExecuteAction <SetUnitTestDisableResponseDto>("SetUnitTestDisable", request));
 }