public void CopyConfigToAppSettingsUpdatesValuesFromConfig() { var asi = new AppSettingsInitializer(_config, _webConfigReader); asi.CopyConfigToAppSettings(_webConfigWriter); _webConfigWriter.Received().SetAppSetting("app_setting_2", "new_value_2"); }
public void CopyBoundSqlInstancesToWebConfigCopiesAnyBoundSqlServer() { var csi = new ConnectionStringInitializer(_config); csi.CopyBoundSqlInstancesToWebConfig(_webConfigWriter); _webConfigWriter.Received().SetConnectionString("schooldb", "Data Source=10.0.0.100,1433;Initial Catalog=school_prod;User Id=school_user;Password=secret;"); }