예제 #1
0
 public static Zidium.Core.Api.SetUnitTestEnableRequestData ConvertToCore(SetUnitTestEnableRequestDtoData data)
 {
     if (data == null)
     {
         return(null);
     }
     return(new Zidium.Core.Api.SetUnitTestEnableRequestData()
     {
         UnitTestId = data.UnitTestId
     });
 }
예제 #2
0
        public SetUnitTestEnableResponse SetUnitTestEnable(Guid unitTestId)
        {
            var dataDto = new SetUnitTestEnableRequestDtoData()
            {
                UnitTestId = unitTestId
            };
            var request = new SetUnitTestEnableRequestDto()
            {
                Data  = dataDto,
                Token = GetAccessTokenDto()
            };
            var responseDto = DtoService.SetUnitTestEnable(request);
            var response    = CreateResponse <SetUnitTestEnableResponse>(responseDto);

            response.InternalData = responseDto.Data;
            return(response);
        }