public void FetchRegionTiresActivity() { var request = new FlashSaleTiresActivityRequest() { ActivityId = Guid.Parse("0b4dd1c7-f897-4c33-8cdc-901320d8d19d"), RegionId = 1 }; using (var client = new ActivityClient()) { var result = client.FetchRegionTiresActivity(request); Assert.IsNotNull(result.Result); } }
public async Task <OperationResult <TiresActivityResponse> > FetchRegionTiresActivityAsync(FlashSaleTiresActivityRequest request) { if (request != null && request.ActivityId != Guid.Empty && request.RegionId > 0) { return(OperationResult.FromResult(await ActivityManager.FetchRegionTiresActivity(request))); } else { return(OperationResult.FromError <TiresActivityResponse>(ErrorCode.ParameterError, "参数无效")); } }