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