public void AddColumn() { Utilities.SQL.DataClasses.Database Database = new Utilities.SQL.DataClasses.Database("TestDatabase"); Utilities.SQL.DataClasses.StoredProcedure Function = Database.AddStoredProcedure("TestStoredProcedure", "Definition"); Function.AddColumn <int>("Column1", DbType.Int32, 0, 0); Assert.Equal(1, Function.Columns.Count); }
public void Create() { Utilities.SQL.DataClasses.Database Database = new Utilities.SQL.DataClasses.Database("TestDatabase"); Utilities.SQL.DataClasses.StoredProcedure Function = Database.AddStoredProcedure("TestStoredProcedure", "Definition"); Assert.Equal(Function, Database.StoredProcedures[0]); Assert.Equal("TestStoredProcedure", Function.Name); Assert.Equal("Definition", Function.Definition); Assert.Equal(Database, Function.ParentDatabase); }