public void GetMethodChain_returns_body_when_order()
        {
            var configuration = new ColumnConfiguration { Order = 0 };
            var code = new CSharpCodeHelper();

            Assert.Equal(".HasColumnOrder(0)", configuration.GetMethodChain(code));
        }
        public void GetMethodChain_returns_body_when_name()
        {
            var configuration = new ColumnConfiguration { Name = "Id" };
            var code = new CSharpCodeHelper();

            Assert.Equal(".HasColumnName(\"Id\")", configuration.GetMethodChain(code));
        }
Ejemplo n.º 3
0
        public void GetMethodChain_returns_body_when_type()
        {
            var configuration = new ColumnConfiguration {
                TypeName = "int"
            };
            var code = new CSharpCodeHelper();

            Assert.Equal(".HasColumnType(\"int\")", configuration.GetMethodChain(code));
        }
Ejemplo n.º 4
0
        public void GetMethodChain_returns_body_when_order()
        {
            var configuration = new ColumnConfiguration {
                Order = 0
            };
            var code = new CSharpCodeHelper();

            Assert.Equal(".HasColumnOrder(0)", configuration.GetMethodChain(code));
        }
Ejemplo n.º 5
0
        public void GetMethodChain_returns_body_when_name()
        {
            var configuration = new ColumnConfiguration {
                Name = "Id"
            };
            var code = new CSharpCodeHelper();

            Assert.Equal(".HasColumnName(\"Id\")", configuration.GetMethodChain(code));
        }
Ejemplo n.º 6
0
        public void GetMethodChain_returns_body_when_all()
        {
            var configuration = new ColumnConfiguration {
                Name = "Id", Order = 0, TypeName = "int"
            };
            var code = new CSharpCodeHelper();

            Assert.Equal(
                ".HasColumnName(\"Id\").HasColumnOrder(0).HasColumnType(\"int\")",
                configuration.GetMethodChain(code));
        }
        public void GetMethodChain_returns_body_when_all()
        {
            var configuration = new ColumnConfiguration { Name = "Id", Order = 0, TypeName = "int" };
            var code = new CSharpCodeHelper();

            Assert.Equal(
                ".HasColumnName(\"Id\").HasColumnOrder(0).HasColumnType(\"int\")",
                configuration.GetMethodChain(code));
        }
        public void GetMethodChain_returns_body_when_type()
        {
            var configuration = new ColumnConfiguration { TypeName = "int" };
            var code = new CSharpCodeHelper();

            Assert.Equal(".HasColumnType(\"int\")", configuration.GetMethodChain(code));
        }