public void Property_attributes_test(string att, string expected)
        {
            // Arrange
            var setting = new PocoSetting
            {
                Attributes = new List <string> {
                    att
                }
            };

            _attributeManager.Init(setting);

            var property = new PropertyTemplate
            {
                PropName = "ProductId",
                PropType = "string",
                Serial   = 1,
                IsKey    = true,
            };
            // Act
            string sut = new PropertyGenerator(property, setting);

            // Assert
            Assert.IsTrue(sut.Contains(expected));
        }
        public void Property_has__type_collection_without_prefix_namespac_test()
        {
            // Arrange
            var setting  = new PocoSetting();
            var property = new PropertyTemplate
            {
                PropName       = "Table",
                PropType       = "List<SimpleDataTable>",
                ClassNameSpace = "SP1",
            };
            var expected = "public List<SimpleDataTable> Table {get;set;}";
            // Act
            string sut = new PropertyGenerator(property, setting);

            // Assert
            Assert.IsTrue(sut.Contains(expected));
        }
        public void Property_has_type_without_prefix_namespac_test()
        {
            // Arrange
            var setting = new PocoSetting
            {
                AddEager = false,
            };
            var property = new PropertyTemplate
            {
                PropName       = "Table",
                PropType       = "SimpleDataTable",
                ClassNameSpace = "SP",
            };
            var expected = "public SimpleDataTable Table {get;set;}";
            // Act
            string sut = new PropertyGenerator(property, setting);

            // Assert
            Assert.IsTrue(sut.Contains(expected));
        }