Ejemplo n.º 1
0
        public override async Task <BulkStoreResponse> BulkStore(BulkStoreRequest request, ServerCallContext context)
        {
            var res = await _executor.ExecuteAsync(new BulkStoreQuery
            {
                SellingTitle           = request.SellingTitle.ToEntity(),
                Station                = request.Station.ToEntity(),
                StationGroup           = request.StationGroup.ToEntity(),
                RateCard               = request.RateCard.ToEntity(),
                RateCardDaypart        = request.RateCardDaypart.ToEntity(),
                RateCardType           = request.RateCardType.ToEntity(),
                SellingTitleTimeRange  = request.SellingTitleTimeRange.ToEntity(),
                SellingTitleDaysOfWeek = request.SellingTitleDaysOfWeek.ToEntity(),
                RatePeriod             = request.RatePeriod.ToEntity(),
                SellableInventory      = request.SellableInventory.ToEntity(),
                SellableInventoryDto   = request.SellableInventoryDto.ToEntity()
            }).ConfigureAwait(false);

            var returnVal = res;

            var result = new BulkStoreResponse
            {
            };

            return(result);
        }
Ejemplo n.º 2
0
        public static void TestBulkStore(SharebuilderRateService.SharebuilderRateServiceClient client)
        {
            var request = new BulkStoreRequest();

            request.RateTier = new RateTier();
            request.RateTier.RateTierHashKey = "cdaf8527-e289-43ab-9987-e923c587d372";
            request.RateTier.RateTierSqn     = 489758482;
            request.RateTier.RateTierName    = "3308ec43-9984-490b-9dbc-90f7e6a21d80";
            request.RatePeriod = new RatePeriod();
            request.RatePeriod.RatePeriodHashKey   = "2e81a607-d212-41ad-a0aa-21741a256328";
            request.RatePeriod.RatePeriodSqn       = 489758482;
            request.RatePeriod.RatePeriodName      = "45a34e72-e0d4-44c0-b53d-239c5257d515";
            request.RatePeriod.RatePeriodStartDate = Timestamp.FromDateTime(DateTime.SpecifyKind(DateTime.Parse("2017-08-05T17:14:38.3028355Z"), DateTimeKind.Utc));
            request.RatePeriod.RatePeriodEndDate   = Timestamp.FromDateTime(DateTime.SpecifyKind(DateTime.Parse("2017-08-05T17:14:38.3028355Z"), DateTimeKind.Utc));
            request.SellableInventoryRate          = new SellableInventoryRate();
            request.SellableInventoryRate.SellableInventoryRateHashKey = "9b9a9ea3-80af-4099-89fd-878e2a385dbd";
            request.SellableInventoryRate.SellableInventoryHashKey     = "66d451ad-8bbe-409b-ad65-ab37d75ed8d8";
            request.SellableInventoryRate.SellableInventoryRateSqn     = 489758482;
            request.SellableInventoryRate.RateTierHashKey            = "e62cd59d-d198-455c-a99a-68f9552825f8";
            request.SellableInventoryRate.SellableInventoryRateValue = "403a672a-6940-4f02-b96c-8523f85e9ed8";
            request.SellableInventoryRate.RowVersion = Timestamp.FromDateTime(DateTime.SpecifyKind(DateTime.Parse("2017-08-05T17:14:38.3028355Z"), DateTimeKind.Utc));
            request.Rate      = new Rate();
            request.Rate.todo = 489758482;
            var response = client.BulkStore(request);
        }
Ejemplo n.º 3
0
        public static void TestBulkStore(SellerRateService.SellerRateServiceClient client)
        {
            var request = new BulkStoreRequest();

            request.RateTier = new RateTier();
            request.RateTier.RateTierHashKey = "293e4c7e-e717-4e53-bdf5-cd64053e8245";
            request.RateTier.RateTierSqn     = 734656429;
            request.RateTier.RateTierName    = "0381f4fb-ebd5-4a09-8545-2033bd8e1f65";
            request.RatePeriod = new RatePeriod();
            request.RatePeriod.RatePeriodHashKey   = "7fe04850-7798-479e-9d64-bd086473a2fd";
            request.RatePeriod.RatePeriodSqn       = 734656429;
            request.RatePeriod.RatePeriodName      = "dbe627f4-353d-4240-836e-dbe53bca41f1";
            request.RatePeriod.RatePeriodStartDate = Timestamp.FromDateTime(DateTime.SpecifyKind(DateTime.Parse("2017-08-05T17:16:37.1498399Z"), DateTimeKind.Utc));
            request.RatePeriod.RatePeriodEndDate   = Timestamp.FromDateTime(DateTime.SpecifyKind(DateTime.Parse("2017-08-05T17:16:37.1498399Z"), DateTimeKind.Utc));
            request.SellableInventoryRate          = new SellableInventoryRate();
            request.SellableInventoryRate.SellableInventoryRateHashKey = "2524165d-9432-4ff3-ab63-8229aa62e992";
            request.SellableInventoryRate.SellableInventoryHashKey     = "b4846e7e-5e6c-473c-b08b-df43ef572441";
            request.SellableInventoryRate.SellableInventoryRateSqn     = 734656429;
            request.SellableInventoryRate.RateTierHashKey            = "a6f5cb2d-146e-4bf3-a997-23544b34a186";
            request.SellableInventoryRate.RatePeriodHashKey          = "1223ad54-fdaf-4d3f-b805-1c517ffb7d50";
            request.SellableInventoryRate.SellableInventoryRateValue = "0513d204-fbad-4135-9c56-e21130011522";
            request.SellableInventoryRate.RowVersion = Timestamp.FromDateTime(DateTime.SpecifyKind(DateTime.Parse("2017-08-05T17:16:37.1498399Z"), DateTimeKind.Utc));
            request.Rate = new Rate();
            request.Rate.SellableInventoryRateValue   = "c0cc5c2b-216e-4a60-ba74-955eb28e02f7";
            request.Rate.SellableInventoryHashKey     = "745391e6-6b7c-4871-a65f-876c6c0aac4c";
            request.Rate.SellableInventoryRateHashKey = "995d6e5f-b893-467a-ba73-5274cd29aeaa";
            request.Rate.RateTierHashKey = "a0c5e05b-0e55-4bf4-bafa-8aa6a1e2db18";
            var response = client.BulkStore(request);
        }
Ejemplo n.º 4
0
        public static void TestBulkStore(SellerRatingService.SellerRatingServiceClient client)
        {
            var request = new BulkStoreRequest();

            request.RatingDemo = new RatingDemo();
            request.RatingDemo.RatingDemoHashKey = "4e350ea0-5b38-4ea2-b625-29cb4f305c9a";
            request.RatingDemo.RatingDemoSqn     = 178388896;
            request.RatingDemo.RatingDemoName    = "28bdc0b9-1764-4abb-9d7e-1b68de42d33a";
            request.RatingPeriod = new RatingPeriod();
            request.RatingPeriod.RatingPeriodHashKey   = "859a9ffe-c76d-4b06-b78b-301fc54d0d91";
            request.RatingPeriod.RatingPeriodSqn       = 178388896;
            request.RatingPeriod.RatingPeriodName      = "ed31e45d-761a-434c-95a7-8407c5112278";
            request.RatingPeriod.RatingPeriodStartDate = Timestamp.FromDateTime(DateTime.SpecifyKind(DateTime.Parse("2017-08-05T17:17:17.0788364Z"), DateTimeKind.Utc));
            request.RatingPeriod.RatingPeriodEndDate   = Timestamp.FromDateTime(DateTime.SpecifyKind(DateTime.Parse("2017-08-05T17:17:17.0788364Z"), DateTimeKind.Utc));
            request.SellableInventoryRating            = new SellableInventoryRating();
            request.SellableInventoryRating.SellableInventoryRatingHashKey = "13fcc7eb-88d5-4af9-97f4-6a260305b978";
            request.SellableInventoryRating.SellableInventoryHashKey       = "b344cc8d-19e9-4b87-8b5b-d697ed56da1b";
            request.SellableInventoryRating.SellableInventoryRatingSqn     = 178388896;
            request.SellableInventoryRating.RatingDemoHashKey            = "92d3fbe7-14a0-42f3-94ba-210601717cc6";
            request.SellableInventoryRating.RatingPeriodHashKey          = "74047427-8747-4cc4-bef5-f3c1a53d569e";
            request.SellableInventoryRating.SellableInventoryRatingValue = "cef90ee5-dd51-4bee-81bd-96dfc9104225";
            request.SellableInventoryRating.RowVersion = Timestamp.FromDateTime(DateTime.SpecifyKind(DateTime.Parse("2017-08-05T17:17:17.0788364Z"), DateTimeKind.Utc));
            request.Rating = new Rating();
            request.Rating.SellableInventoryRatingValue   = "8feee500-6a8c-4e21-9f50-854fbf92ed0d";
            request.Rating.SellableInventoryHashKey       = "741c0a90-f7af-420f-bcad-6777465429ab";
            request.Rating.SellableInventoryRatingHashKey = "31b38955-77e2-4559-9620-cf300aed5f2a";
            request.Rating.RatingDemoHashKey = "d5901192-f818-48db-8ceb-56c095c41656";
            var response = client.BulkStore(request);
        }
Ejemplo n.º 5
0
        public static void TestBulkStore(AvailMartService.AvailMartServiceClient client)
        {
            var request = new BulkStoreRequest();

            request.AvailMart = new AvailMart();
            request.AvailMart.AvailMartHashKey = "b0892ecb-1e90-48c8-84fa-317cef82048e";
            request.AvailMart.AvailMartSqn     = 500355980;
            request.AvailMart.StartDate        = Timestamp.FromDateTime(DateTime.SpecifyKind(DateTime.Parse("2017-08-05T17:21:39.1146756Z"), DateTimeKind.Utc));
            request.AvailMart.EndDate          = Timestamp.FromDateTime(DateTime.SpecifyKind(DateTime.Parse("2017-08-05T17:21:39.1146756Z"), DateTimeKind.Utc));
            request.AvailList = new AvailList();
            request.AvailList.AvailListHashKey   = "035ec7e3-950c-498e-8793-e2d4fbcecda5";
            request.AvailList.AvailListSqn       = 500355980;
            request.AvailList.AvailMartHashKey   = "4bea46ce-e923-4b96-929f-09e3b1837308";
            request.AvailList.Name               = "be5537e0-bdf0-4c71-8aba-39ecb6ada267";
            request.AvailList.StartDate          = Timestamp.FromDateTime(DateTime.SpecifyKind(DateTime.Parse("2017-08-05T17:21:39.1146756Z"), DateTimeKind.Utc));
            request.AvailList.EndDate            = Timestamp.FromDateTime(DateTime.SpecifyKind(DateTime.Parse("2017-08-05T17:21:39.1146756Z"), DateTimeKind.Utc));
            request.AvailLineWithDetailedPeriods = new AvailLineWithDetailedPeriods();
            request.AvailLineWithDetailedPeriods.AvailLineWithDetailedPeriodsHashKey = "024a7571-60e7-4f08-93dd-4114ea2ade47";
            request.AvailLineWithDetailedPeriods.AvailLineWithDetailedPeriodsSqn     = 500355980;
            request.AvailLineWithDetailedPeriods.AvailListHashKey = "ebe038a4-914d-480e-8443-364f4bf71315";
            request.AvailLineWithDetailedPeriods.DaypartName      = "43a2069f-9025-4094-8b90-16f48bab87e0";
            request.AvailLineWithDetailedPeriods.AvailName        = "939ad4b9-a6a7-4828-87dc-ba385e50f8d2";
            request.DetailedPeriod = new DetailedPeriod();
            request.DetailedPeriod.DetailedPeriodHashKey = "0d2f5467-67e2-445a-8063-88bf8e501b34";
            request.DetailedPeriod.DetailedPeriodSqn     = 500355980;
            request.DetailedPeriod.AvailLineWithDetailedPeriodsHashKey = "e70cf0e8-ca46-4ab3-a56a-8cc836aa2b66";
            request.DetailedPeriod.StartDate = Timestamp.FromDateTime(DateTime.SpecifyKind(DateTime.Parse("2017-08-05T17:21:39.1146756Z"), DateTimeKind.Utc));
            request.DetailedPeriod.EndDate   = Timestamp.FromDateTime(DateTime.SpecifyKind(DateTime.Parse("2017-08-05T17:21:39.1146756Z"), DateTimeKind.Utc));
            request.DetailedPeriod.Rate      = "3899a128-381f-4f3b-9909-5f80a74f023a";
            var response = client.BulkStore(request);
        }
Ejemplo n.º 6
0
        public static void TestBulkStore(CuratedRatingService.CuratedRatingServiceClient client)
        {
            var request = new BulkStoreRequest();

            request.CuratedRating = new CuratedRating();
            request.CuratedRating.CuratedRatingId          = null;
            request.CuratedRating.SellableInventoryHashKey = "ff7b26ae-497d-4e46-be51-eb4c85981ef9";
            request.CuratedRating.RatingHashKey            = "6c6ca808-0dd1-4553-85ce-43a606e843e5";
            request.CuratedRating.RatingVersion            = 471380170;
            request.CuratedRating.IsDynamicRating          = true;
            request.CuratedRating.CuratingRatingValue      = "182cc958-654a-4a88-9d58-e25930cd9de8";
            request.CuratedRating.RatingTypeId             = 471380170;
            request.CuratedRating.CurationStatusId         = 471380170;
            request.CuratedRating.CreatedBy  = "05c46d02-f36a-4279-888b-a0533e79a01e";
            request.CuratedRating.ModifiedBy = "294c7c0d-6747-4318-9777-c0ac5fa0370c";
            request.CuratedRating.RowVersion = Timestamp.FromDateTime(DateTime.SpecifyKind(DateTime.Parse("2017-08-05T17:19:53.7818348Z"), DateTimeKind.Utc));
            request.RatingType = new RatingType();
            request.RatingType.RatingTypeId          = 471380170;
            request.RatingType.RatingTypeName        = "d1271e10-d2f8-4000-a0e0-727c85729ed3";
            request.RatingType.RatingTypeDescription = "39586d1c-3d09-4181-9cc7-5e11e2431e2a";
            request.CurationStatus = new CurationStatus();
            request.CurationStatus.CurationStatusId          = 471380170;
            request.CurationStatus.CurationStatusName        = "f261fa54-5918-4df2-b07a-4fcf54410695";
            request.CurationStatus.CurationStatusDescription = "d77d1b27-2d1d-4e26-84d9-0f1873b14567";
            request.Rating      = new Rating();
            request.Rating.todo = 471380170;
            var response = client.BulkStore(request);
        }
Ejemplo n.º 7
0
        public static void TestBulkStore(CuratedRateService.CuratedRateServiceClient client)
        {
            var request = new BulkStoreRequest();

            request.CuratedRate = new CuratedRate();
            request.CuratedRate.CuratedRateId            = null;
            request.CuratedRate.SellableInventoryHashKey = "f70db604-1abe-49e9-84c2-7d635f40ae00";
            request.CuratedRate.RateHashKey      = "2def762e-b560-4c45-b962-8d4977a65063";
            request.CuratedRate.RateVersion      = 1303640176;
            request.CuratedRate.CuratedRateValue = "faea49fc-8473-46fc-880d-e12736d96b8b";
            request.CuratedRate.IsDynamicRate    = true;
            request.CuratedRate.RateTypeId       = 1303640176;
            request.CuratedRate.CurationStatusId = 1303640176;
            request.CuratedRate.CreatedBy        = "b4763e45-13aa-4795-a214-3f440b60e89c";
            request.CuratedRate.ModifiedBy       = "a73a1989-ac22-445b-8468-294d145db1ee";
            request.CuratedRate.RowVersion       = Timestamp.FromDateTime(DateTime.SpecifyKind(DateTime.Parse("2017-08-05T17:19:10.5028481Z"), DateTimeKind.Utc));
            request.RateType                                 = new RateType();
            request.RateType.RateTypeId                      = 1303640176;
            request.RateType.RateTypeName                    = "91bfdca3-0444-4c21-809b-7e801a85fa81";
            request.RateType.RateTypeDescription             = "db09026d-41ee-42b1-893a-160c6c0ac0e9";
            request.CurationStatus                           = new CurationStatus();
            request.CurationStatus.CurationStatusId          = 1303640176;
            request.CurationStatus.CurationStatusName        = "1639870e-1d35-4e08-9348-37e9ba46c8db";
            request.CurationStatus.CurationStatusDescription = "68fb51ac-640c-4081-84b3-5c1fd34653dc";
            request.Rate      = new Rate();
            request.Rate.todo = 1303640176;
            var response = client.BulkStore(request);
        }
        public override async Task <BulkStoreResponse> BulkStore(BulkStoreRequest request, ServerCallContext context)
        {
            var res = await _executor.ExecuteAsync(new BulkStoreQuery
            {
                RatePeriod = request.RatePeriod.ToEntity(),
                SellableInventoryTrafficStatistics = request.SellableInventoryTrafficStatistics.ToEntity(),
                TrafficStatistic = request.TrafficStatistic.ToEntity()
            }).ConfigureAwait(false);

            var returnVal = res;

            var result = new BulkStoreResponse
            {
            };

            return(result);
        }
        public override async Task <BulkStoreResponse> BulkStore(BulkStoreRequest request, ServerCallContext context)
        {
            var res = await _executor.ExecuteAsync(new BulkStoreQuery
            {
                CuratedRating  = request.CuratedRating.ToEntity(),
                RatingType     = request.RatingType.ToEntity(),
                CurationStatus = request.CurationStatus.ToEntity(),
                Rating         = request.Rating.ToEntity()
            }).ConfigureAwait(false);

            var returnVal = res;

            var result = new BulkStoreResponse
            {
            };

            return(result);
        }
Ejemplo n.º 10
0
        public override async Task <BulkStoreResponse> BulkStore(BulkStoreRequest request, ServerCallContext context)
        {
            var res = await _executor.ExecuteAsync(new BulkStoreQuery
            {
                AvailMart = request.AvailMart.ToEntity(),
                AvailList = request.AvailList.ToEntity(),
                AvailLineWithDetailedPeriods = request.AvailLineWithDetailedPeriods.ToEntity(),
                DetailedPeriod = request.DetailedPeriod.ToEntity()
            }).ConfigureAwait(false);

            var returnVal = res;

            var result = new BulkStoreResponse
            {
            };

            return(result);
        }
Ejemplo n.º 11
0
        public static void TestBulkStore(TrafficStatisticService.TrafficStatisticServiceClient client)
        {
            var request = new BulkStoreRequest();

            request.RatePeriod = new RatePeriod();
            request.RatePeriod.RatePeriodHashKey       = "9733af57-b1bd-4599-9fd2-a43c9e2da080";
            request.RatePeriod.RatePeriodSqn           = 2118664305;
            request.RatePeriod.RatePeriodName          = "4057d645-054e-47e7-b7b1-1415298111e5";
            request.RatePeriod.RatePeriodStartDate     = Timestamp.FromDateTime(DateTime.SpecifyKind(DateTime.Parse("2017-08-05T17:15:19.8998345Z"), DateTimeKind.Utc));
            request.RatePeriod.RatePeriodEndDate       = Timestamp.FromDateTime(DateTime.SpecifyKind(DateTime.Parse("2017-08-05T17:15:19.8998345Z"), DateTimeKind.Utc));
            request.SellableInventoryTrafficStatistics = new SellableInventoryTrafficStatistics();
            request.SellableInventoryTrafficStatistics.SellableInventoryTrafficStatisticHashKey = "410a69ea-b9ad-498e-9e09-46c9a0d92a53";
            request.SellableInventoryTrafficStatistics.SellableInventoryHashKey             = "d63c53ce-a066-4661-884e-c435588b3284";
            request.SellableInventoryTrafficStatistics.SellableInventoryTrafficStatisticSqn = 2118664305;
            request.SellableInventoryTrafficStatistics.SellableInventoryAURValue            = "e035326c-667a-4c40-a9c3-82c892c54f3c";
            request.SellableInventoryTrafficStatistics.RowVersion = Timestamp.FromDateTime(DateTime.SpecifyKind(DateTime.Parse("2017-08-05T17:15:19.8998345Z"), DateTimeKind.Utc));
            request.TrafficStatistic      = new TrafficStatistic();
            request.TrafficStatistic.todo = 2118664305;
            var response = client.BulkStore(request);
        }
Ejemplo n.º 12
0
        public static void TestBulkStore(InventoryGuideService.InventoryGuideServiceClient client)
        {
            var request = new BulkStoreRequest();

            request.SellingTitle = new SellingTitle();
            request.SellingTitle.SellingTitleHashKey   = "21aa5fcd-b9fa-4649-8125-485c4959554a";
            request.SellingTitle.SellingTitleSqn       = 1539057042;
            request.SellingTitle.SellingTitleName      = "decfeb09-5bf5-4538-9b64-652547df2cde";
            request.SellingTitle.SellingTitleStartDate = Timestamp.FromDateTime(DateTime.SpecifyKind(DateTime.Parse("2017-08-05T17:15:58.7271728Z"), DateTimeKind.Utc));
            request.SellingTitle.SellingTitleEndDate   = Timestamp.FromDateTime(DateTime.SpecifyKind(DateTime.Parse("2017-08-05T17:15:58.7271728Z"), DateTimeKind.Utc));
            request.Station = new Station();
            request.Station.StationHashKey     = "f251a62e-7b6f-4175-a95c-ee88c657f1ff";
            request.Station.StationSqn         = 1539057042;
            request.Station.StationName        = "ef5295d7-05b3-4e97-899c-f806f9c1c067";
            request.Station.StationCallLetters = "75b9dda6-602f-4324-b1c1-7b6e0b4971b3";
            request.StationGroup = new StationGroup();
            request.StationGroup.StationGroupHashKey = "1e4b0f6b-e6be-4f99-9813-97da1c1ccec6";
            request.StationGroup.StationGroupSqn     = 1539057042;
            request.StationGroup.StationGroupName    = "82672ffe-191b-405e-88c1-24ee38ec7653";
            request.RateCard = new RateCard();
            request.RateCard.RateCardHashKey               = "cb66711d-0e73-4ffc-bbb3-7df5ebfd1438";
            request.RateCard.RateCardSqn                   = 1539057042;
            request.RateCard.RateCardName                  = "367ec503-34bb-48c6-ad2c-63b51bbb2b33";
            request.RateCard.RateCardStartDate             = Timestamp.FromDateTime(DateTime.SpecifyKind(DateTime.Parse("2017-08-05T17:15:58.7272393Z"), DateTimeKind.Utc));
            request.RateCard.RateCardEndDate               = Timestamp.FromDateTime(DateTime.SpecifyKind(DateTime.Parse("2017-08-05T17:15:58.7272393Z"), DateTimeKind.Utc));
            request.RateCardDaypart                        = new RateCardDaypart();
            request.RateCardDaypart.RateCardDaypartHashKey = "bedb57fb-d092-4fdc-8547-fdff77f436dd";
            request.RateCardDaypart.RateCardDaypartSqn     = 1539057042;
            request.RateCardDaypart.RateCardDaypartName    = "b19e3e23-a2a8-498e-9536-8af36559a296";
            request.RateCardType = new RateCardType();
            request.RateCardType.RateCardTypeHashKey = "89977c66-0e5c-4c42-91dd-9da813fb1a27";
            request.RateCardType.RateCardTypeSqn     = 1539057042;
            request.RateCardType.RateCardTypeName    = "c2d34504-351f-488e-925d-c57a85c4202b";
            request.SellingTitleTimeRange            = new SellingTitleTimeRange();
            request.SellingTitleTimeRange.SellingTitleTimeRangeHashKey = "b001f576-ade5-4c14-8453-8e79f853ecb5";
            request.SellingTitleTimeRange.TimeRangeSqn = 1539057042;
            request.SellingTitleTimeRange.SellingTitleTimeRangeName = "720c14da-f808-4b2c-ad70-6c0ae64e2167";
            request.SellingTitleDaysOfWeek = new SellingTitleDaysOfWeek();
            request.SellingTitleDaysOfWeek.SellingTitleDaysOfWeekHashKey = "be086a44-42fc-4086-9c1e-eb8f9d80da8f";
            request.SellingTitleDaysOfWeek.SellingTitleDaysOfWeekSqn     = 1539057042;
            request.SellingTitleDaysOfWeek.SellingTitleDaysOfWeekName    = "db2bd678-3736-40dd-9beb-7f162cec0aa9";
            request.SellingTitleDaysOfWeek.Mon = true;
            request.SellingTitleDaysOfWeek.Tue = true;
            request.SellingTitleDaysOfWeek.Wed = true;
            request.SellingTitleDaysOfWeek.Thu = true;
            request.SellingTitleDaysOfWeek.Fri = true;
            request.SellingTitleDaysOfWeek.Sat = true;
            request.SellingTitleDaysOfWeek.Sun = true;
            request.RatePeriod = new RatePeriod();
            request.RatePeriod.RatePeriodHashKey   = "286fd236-ade0-4333-bc35-b5449a7dfe55";
            request.RatePeriod.RatePeriodSqn       = 1539057042;
            request.RatePeriod.RatePeriodName      = "bb9cd264-a752-42b5-bb9e-2c5b6f10d31c";
            request.RatePeriod.RatePeriodStartDate = Timestamp.FromDateTime(DateTime.SpecifyKind(DateTime.Parse("2017-08-05T17:15:58.7272393Z"), DateTimeKind.Utc));
            request.RatePeriod.RatePeriodEndDate   = Timestamp.FromDateTime(DateTime.SpecifyKind(DateTime.Parse("2017-08-05T17:15:58.7272393Z"), DateTimeKind.Utc));
            request.SellableInventory = new SellableInventory();
            request.SellableInventory.SellableInventoryHashKey      = "d2ca40ed-2547-4fcc-b935-5183202302cf";
            request.SellableInventory.SellableInventorySqn          = 1539057042;
            request.SellableInventory.StationHashKey                = "afee9fe0-7581-4faa-80f3-7e9158af4cce";
            request.SellableInventory.StationGroupHashKey           = "541cce5e-37be-49c6-a3c5-bd16607250df";
            request.SellableInventory.RateCardHashKey               = "49bdd553-e20e-4d1d-b49f-88b6190d3694";
            request.SellableInventory.RateCardDaypartHashKey        = "1586f1a1-b8d4-49aa-befb-d1726f70987b";
            request.SellableInventory.RateCardTypeHashKey           = "e883e9e7-daf2-46f9-ae00-c9aa9b603c4e";
            request.SellableInventory.SellingTitleHashKey           = "6b307faf-4728-4e60-9d97-237235c6b39e";
            request.SellableInventory.SellingTitleDaysOfWeekHashKey = "5fa63f80-aee9-4c33-beec-422e03fc6540";
            request.SellableInventory.SellingTitleTimeRangeHashKey  = "00be94a8-28e5-4913-a84f-ebd30ec2476e";
            request.SellableInventory.RatePeriodHashKey             = "a0475652-c995-4dcc-b6ca-9bfb39736ecd";
            request.SellableInventoryDto = new SellableInventoryDto();
            var response = client.BulkStore(request);
        }
Ejemplo n.º 13
0
        public static void TestBulkStore(SellableInventoryMartService.SellableInventoryMartServiceClient client)
        {
            var request = new BulkStoreRequest();

            request.SellingTitle = new SellingTitle();
            request.SellingTitle.SellingTitleHashKey   = "ac0b1083-e632-4678-aa01-13ca0b79f8b5";
            request.SellingTitle.SellingTitleSqn       = 1037389668;
            request.SellingTitle.SellingTitleName      = "a0f52e1a-ef9f-4269-8d55-1ec58cb688bf";
            request.SellingTitle.SellingTitleStartDate = Timestamp.FromDateTime(DateTime.SpecifyKind(DateTime.Parse("2017-08-05T17:18:15.8818354Z"), DateTimeKind.Utc));
            request.SellingTitle.SellingTitleEndDate   = Timestamp.FromDateTime(DateTime.SpecifyKind(DateTime.Parse("2017-08-05T17:18:15.8818354Z"), DateTimeKind.Utc));
            request.Station = new Station();
            request.Station.StationHashKey     = "c89f11ba-315f-4a89-bcb3-036e2659429e";
            request.Station.StationSqn         = 1037389668;
            request.Station.StationName        = "53bd4ca2-a0c5-4e29-a034-781944efc2af";
            request.Station.StationCallLetters = "e20099e9-dd34-4bda-8eb5-ca14769bfa41";
            request.StationGroup = new StationGroup();
            request.StationGroup.StationGroupHashKey = "8ffe0eb6-3e36-4f20-bed1-1949424c141c";
            request.StationGroup.StationGroupSqn     = 1037389668;
            request.StationGroup.StationGroupName    = "58e6769d-92ba-4274-a6e4-6880b40e84c3";
            request.RateCard = new RateCard();
            request.RateCard.RateCardHashKey               = "4e8edf06-5218-4e70-aae7-a9e59f17f55c";
            request.RateCard.RateCardSqn                   = 1037389668;
            request.RateCard.RateCardName                  = "6fbbe318-96bc-46a7-aaa7-40ac7695b023";
            request.RateCard.RateCardStartDate             = Timestamp.FromDateTime(DateTime.SpecifyKind(DateTime.Parse("2017-08-05T17:18:15.8818354Z"), DateTimeKind.Utc));
            request.RateCard.RateCardEndDate               = Timestamp.FromDateTime(DateTime.SpecifyKind(DateTime.Parse("2017-08-05T17:18:15.8818354Z"), DateTimeKind.Utc));
            request.RateCardDaypart                        = new RateCardDaypart();
            request.RateCardDaypart.RateCardDaypartHashKey = "e4ccbad7-ac0f-4041-8240-be43668da333";
            request.RateCardDaypart.RateCardDaypartSqn     = 1037389668;
            request.RateCardDaypart.RateCardDaypartName    = "34a809ba-feac-4075-ba60-1941a200fb07";
            request.RateCardType = new RateCardType();
            request.RateCardType.RateCardTypeHashKey = "b26ec701-1b21-4fb9-ae59-5a224985bf6a";
            request.RateCardType.RateCardTypeSqn     = 1037389668;
            request.RateCardType.RateCardTypeName    = "697967db-7917-4518-a74a-0ac9c381e106";
            request.SellingTitleTimeRange            = new SellingTitleTimeRange();
            request.SellingTitleTimeRange.SellingTitleTimeRangeHashKey = "3148cade-12da-48bb-a1e3-3933ccb75e47";
            request.SellingTitleTimeRange.TimeRangeSqn = 1037389668;
            request.SellingTitleTimeRange.SellingTitleTimeRangeName = "6b19caa6-4939-415d-90bf-b3917ba3b873";
            request.SellingTitleDaysOfWeek = new SellingTitleDaysOfWeek();
            request.SellingTitleDaysOfWeek.SellingTitleDaysOfWeekHashKey = "2f60852f-dee1-437d-be4c-a4dee856df11";
            request.SellingTitleDaysOfWeek.SellingTitleDaysOfWeekSqn     = 1037389668;
            request.SellingTitleDaysOfWeek.SellingTitleDaysOfWeekName    = "1f3be942-3001-491b-86d0-5c14c7c4881b";
            request.SellingTitleDaysOfWeek.Mon = true;
            request.SellingTitleDaysOfWeek.Tue = true;
            request.SellingTitleDaysOfWeek.Wed = true;
            request.SellingTitleDaysOfWeek.Thu = true;
            request.SellingTitleDaysOfWeek.Fri = true;
            request.SellingTitleDaysOfWeek.Sat = true;
            request.SellingTitleDaysOfWeek.Sun = true;
            request.SellableInventoryPeriod    = new SellableInventoryPeriod();
            request.SellableInventoryPeriod.SellableInventoryPeriodHashKey   = "f80de5bf-cc7a-4110-8652-03e4a04b5a09";
            request.SellableInventoryPeriod.SellableInventoryPeriodSqn       = 1037389668;
            request.SellableInventoryPeriod.SellableInventoryPeriodName      = "89e4afa9-a0c0-49d7-a553-440eeb07f564";
            request.SellableInventoryPeriod.SellableInventoryPeriodStartDate = Timestamp.FromDateTime(DateTime.SpecifyKind(DateTime.Parse("2017-08-05T17:18:15.8818354Z"), DateTimeKind.Utc));
            request.SellableInventoryPeriod.SellableInventoryPeriodEndDate   = Timestamp.FromDateTime(DateTime.SpecifyKind(DateTime.Parse("2017-08-05T17:18:15.8818354Z"), DateTimeKind.Utc));
            request.SellableInventory = new SellableInventory();
            request.SellableInventory.SellableInventoryHashKey       = "6a2ca1bb-d4d6-4aa6-b5a8-c9cd4c366328";
            request.SellableInventory.SellableInventorySqn           = 1037389668;
            request.SellableInventory.StationHashKey                 = "0b15f49c-7ad9-489c-9cbb-bf2f4222bcab";
            request.SellableInventory.StationGroupHashKey            = "451b3034-ca05-4f6e-8843-2918d322f1f0";
            request.SellableInventory.RateCardHashKey                = "4fa006c9-655c-4bfa-97cc-a17d875a887c";
            request.SellableInventory.RateCardDaypartHashKey         = "7ba8b574-cd99-47c6-aa1d-bd727995a842";
            request.SellableInventory.RateCardTypeHashKey            = "a9045e94-76a4-42a4-973b-2e9b8dd264c8";
            request.SellableInventory.SellingTitleHashKey            = "0129d093-5509-4a9e-8204-20f41add6c2c";
            request.SellableInventory.SellingTitleDaysOfWeekHashKey  = "bae5f0ac-d411-4965-9edd-27446181eef6";
            request.SellableInventory.SellingTitleTimeRangeHashKey   = "f99c8efb-059c-4a12-82b3-4f9cb889dea6";
            request.SellableInventory.SellableInventoryPeriodHashKey = "a76ebbb1-568e-4084-ad6d-ef410b0edd67";
            request.SellableInventoryDto = new SellableInventoryDto();
            request.SellableInventoryDto.SellingTitleStartDate         = Timestamp.FromDateTime(DateTime.SpecifyKind(DateTime.Parse("2017-08-05T17:18:15.8818354Z"), DateTimeKind.Utc));
            request.SellableInventoryDto.SellingTitleEndDate           = Timestamp.FromDateTime(DateTime.SpecifyKind(DateTime.Parse("2017-08-05T17:18:15.8818354Z"), DateTimeKind.Utc));
            request.SellableInventoryDto.SellingTitleName              = "1f0b25d2-ee00-4956-9f32-c30f3dcf4de9";
            request.SellableInventoryDto.RateCardDaypartName           = "37e71c8d-1f5b-4d93-8cf8-6182143dda41";
            request.SellableInventoryDto.SellingTitleDaysOfWeekName    = "3ecec981-77f9-4016-9424-ca64c5b69c10";
            request.SellableInventoryDto.RateCardTypeName              = "79d42425-d6f2-498b-8fa9-33a1b74c40f3";
            request.SellableInventoryDto.SellableInventoryHashKey      = "28e8e016-f7cf-4e1a-a21c-1ef99ef45620";
            request.SellableInventoryDto.StationHashKey                = "aa66f8c7-a84b-4377-98b3-935bb3a2d271";
            request.SellableInventoryDto.SellingTitleDaysOfWeekHashKey = "032efa96-0b34-4d76-8488-265c92f7a5df";
            request.SellableInventoryDto.RateCardTypeHashKey           = "80e776bf-bca6-475e-b065-7faa7710a298";
            var response = client.BulkStore(request);
        }