public void AddFunction()
 {
     var Database = new Utilities.ORM.Manager.Schema.Default.Database.Database("TestDatabase");
     Database.AddFunction("TestFunction", "FunctionDefinition");
     Assert.Equal(1, Database.Functions.Count);
     Assert.Equal("TestFunction", Database.Functions.First().Name);
     Assert.Equal("FunctionDefinition", Database.Functions.First().Definition);
     Assert.Equal(Database, Database.Functions.First().Source);
 }
Пример #2
0
 public void Create()
 {
     var Database = new Utilities.ORM.Manager.Schema.Default.Database.Database("TestDatabase");
     var Function = Database.AddFunction("TestFunction", "Definition");
     Assert.Equal(Function, Database.Functions.First());
     Assert.Equal("TestFunction", Function.Name);
     Assert.Equal("Definition", Function.Definition);
     Assert.Equal(Database, Function.Source);
 }
        public void Create()
        {
            var Database = new Utilities.ORM.Manager.Schema.Default.Database.Database("TestDatabase");
            var Function = Database.AddFunction("TestFunction", "Definition");

            Assert.Equal(Function, Database.Functions.First());
            Assert.Equal("TestFunction", Function.Name);
            Assert.Equal("Definition", Function.Definition);
            Assert.Equal(Database, Function.Source);
        }
        public void AddFunction()
        {
            var Database = new Utilities.ORM.Manager.Schema.Default.Database.Database("TestDatabase");

            Database.AddFunction("TestFunction", "FunctionDefinition");
            Assert.Equal(1, Database.Functions.Count);
            Assert.Equal("TestFunction", Database.Functions.First().Name);
            Assert.Equal("FunctionDefinition", Database.Functions.First().Definition);
            Assert.Equal(Database, Database.Functions.First().Source);
        }