Beispiel #1
0
        public void Table_CorrectName_IsRetained()
        {
            string expected = "TestTableName";
            string actual = new Table(expected, "TestSchema", "TestDatabase", GetColumns()).Name;

            Assert.AreEqual(expected, actual);
        }
Beispiel #2
0
        public void CastToString_CorrectName_ReturnsSameAsToString()
        {
            Table table = new Table("TestTableName", "TestSchema", "TestDatabase", GetColumns());

            string expected = table.ToString();
            string actual = table;

            Assert.AreEqual(expected, actual);
        }
Beispiel #3
0
 public FromClause(Table table)
 {
     this.Table = Contract.Required(table, "Table");
 }
Beispiel #4
0
        public void ToString_CorrectName_ReturnsName()
        {
            string expected = "TestTableName";
            string actual = new Table(expected, "TestSchema", "TestDatabase", GetColumns()).ToString();

            Assert.AreEqual(expected, actual);
        }
Beispiel #5
0
        public QueryBuilder From(Table table)
        {
            this.from = new FromClause(Contract.Required(table, "Table"));

            return this;
        }
Beispiel #6
0
 protected internal Table AddTable(Table table)
 {
     tables.Add(table);
     return table;
 }