示例#1
0
        public void ListingController_SyncOneGET_ShouldCallUpdateAmazonListing()
        {
            var listing = new AmazonListing();

            var result = _listingController.SyncOne_GET(listing);

            A.CallTo(() => _prepareForSyncAmazonListingService.UpdateAmazonListing(listing)).MustHaveHappened();
        }
 public ActionResult SyncOne_GET(AmazonListing amazonListing)
 {
     if (amazonListing != null)
     {
         ViewData["AmazonManageInventoryUrl"] = _amazonAppSettings.AmazonManageInventoryUrl;
         _prepareForSyncAmazonListingService.UpdateAmazonListing(amazonListing);
         return(View(_amazonListingSyncManager.GetAmazonSyncModel(amazonListing)));
     }
     return(RedirectToAction("Index", "ListingGroup"));
 }