public void ListingController_CloseManyPOST_ShouldCallSyncAmazonListings() { var model = new AmazonSyncModel(); var result = _listingController.CloseMany_POST(model); A.CallTo(() => _amazonListingSyncManager.CloseAmazonListings(model)).MustHaveHappened(); }
public JsonResult CloseMany_POST(AmazonSyncModel model) { if (model != null) { _amazonListingSyncManager.CloseAmazonListings(model); return(Json(true)); } return(Json(false)); }