Exemple #1
0
            public void Can_filter_properties_will_be_converted()
            {
                var model = new ProductList.Query
                {
                    CategoryId = 123,
                    OnSales    = true,
                    Result     = new ProductList.Result
                    {
                        Total = 100
                    }
                };

                var yaml = model.ToYml().DumpToConsole();
            }
Exemple #2
0
            public void Can_convert_object_to_yaml_string()
            {
                var model = new ProductList.Query
                {
                    CategoryId = 123,
                    Category   = "Apple",
                    OnSales    = true,
                    Size       = new List <ProductList.Size>
                    {
                        ProductList.Size.Small,
                        ProductList.Size.Medium
                    },
                    Result = new ProductList.Result
                    {
                        Total = 100
                    }
                };

                model.ToYml().DumpToConsole();
            }