public void GetMethodChain_returns_body()
        {
            var configuration = new TableConfiguration { Table = "Entities" };
            var code = new CSharpCodeHelper();

            Assert.Equal(".ToTable(\"Entities\")", configuration.GetMethodChain(code));
        }
        public void GetAttributeBody_returns_body()
        {
            var configuration = new TableConfiguration { Table = "Entities" };
            var code = new CSharpCodeHelper();

            Assert.Equal("Table(\"Entities\")", configuration.GetAttributeBody(code));
        }
        public void GetMethodChain_returns_body()
        {
            var configuration = new TableConfiguration {
                Table = "Entities"
            };
            var code = new CSharpCodeHelper();

            Assert.Equal(".ToTable(\"Entities\")", configuration.GetMethodChain(code));
        }
        public void GetAttributeBody_returns_body()
        {
            var configuration = new TableConfiguration {
                Table = "Entities"
            };
            var code = new CSharpCodeHelper();

            Assert.Equal("Table(\"Entities\")", configuration.GetAttributeBody(code));
        }
        public void GetName_escapes_parts_when_dot(string schema, string table, string expected)
        {
            var configuration = new TableConfiguration { Schema = schema, Table = table };

            Assert.Equal(expected, configuration.GetName());
        }