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;"); }
public void CopyBoundSqlInstancesToWebConfigThrowsWhenWebConfigWriterIsNull() { var csi = new ConnectionStringInitializer(_config); Assert.Throws <ArgumentNullException>(() => csi.CopyBoundSqlInstancesToWebConfig(null)); }