public static Zidium.Core.Api.SetUnitTestEnableRequestData ConvertToCore(SetUnitTestEnableRequestDtoData data) { if (data == null) { return(null); } return(new Zidium.Core.Api.SetUnitTestEnableRequestData() { UnitTestId = data.UnitTestId }); }
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); }