public void GoogleBaseController_GoogleBaseSettings_ShouldCallSaveSettingsOfConfigurationProvider() { var settings = new GoogleBaseSettings(); _googleBaseController.GoogleBaseSettings(settings); A.CallTo(() => _configurationProvider.SaveSettings(settings)).MustHaveHappened(); }
public GoogleBaseControllerTests() { _configurationProvider = A.Fake <IConfigurationProvider>(); _googleBaseSettings = A.Fake <GoogleBaseSettings>(); _googleBaseManager = A.Fake <IGoogleBaseManager>(); _productVariantService = A.Fake <IProductVariantService>(); _optionService = A.Fake <IOptionService>(); _googleBaseController = new GoogleBaseController(_configurationProvider, _googleBaseSettings, _optionService, _productVariantService, _googleBaseManager); }
public GoogleBaseController(IConfigurationProvider configurationProvider, GoogleBaseSettings googleBaseSettings, IOptionService optionService, IProductVariantService productVariantService, IGoogleBaseManager googleBaseManager) { _configurationProvider = configurationProvider; _googleBaseSettings = googleBaseSettings; _optionService = optionService; _productVariantService = productVariantService; _googleBaseManager = googleBaseManager; }
public ActionResult GoogleBaseSettings(GoogleBaseSettings settings) { _configurationProvider.SaveSettings(settings); return(RedirectToAction("Dashboard")); }