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(); }
public void Should_inspect_objects() { var model = new ProductList.Query() { Category = "Apple", CategoryId = 123, OnSales = true }; var output = model.Inspect(); output.ShouldContain("Title: This is the title"); output.ShouldContain("CategoryId: 123"); output.ShouldContain("Category: Apple"); output.ShouldContain("OnSales: True"); }
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(); }