Beispiel #1
0
        public void ListingController_SyncOneGET_ShouldCallGetAmazonSyncModel()
        {
            var model = new AmazonListing();

            var result = _listingController.SyncOne_GET(model);

            A.CallTo(() => _amazonListingSyncManager.GetAmazonSyncModel(model)).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"));
 }