コード例 #1
0
ファイル: ApiService.cs プロジェクト: crazyants/ZidiumServer
        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);
        }