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 void GoogleBaseController_GoogleBaseSettings_ShouldCallSaveSettingsOfConfigurationProvider() { var settings = new GoogleBaseSettings(); _googleBaseController.GoogleBaseSettings(settings); A.CallTo(() => _configurationProvider.SaveSettings(settings)).MustHaveHappened(); }