Example #1
0
        public void ListingController_CloseOnePOST_ShouldCallCloseAmazonListing()
        {
            var model = new AmazonSyncModel();

            var result = _listingController.CloseOne_POST(model);

            A.CallTo(() => _amazonListingSyncManager.CloseAmazonListing(model)).MustHaveHappened();
        }
 public JsonResult CloseOne_POST(AmazonSyncModel model)
 {
     if (model != null)
     {
         _amazonListingSyncManager.CloseAmazonListing(model);
         return(Json(true));
     }
     return(Json(false));
 }