public void Should_ignore_dictionary_properties() { var request = new ProductsEdit.Command() { Id = 1, ShouldIgnore = true }; UrlLookup .For(request) .ShouldNotContain("ShouldIgnore"); }
public void Build_full_url() { var request = new ProductsEdit.Command { Id = 10, Name = "iPhone 5S", ReturnUrl = "/Products" }; UrlLookup .FullFor(request) .ShouldBe("https://mirufx.github.io/Products/Edit/10"); }
public void If_request_is_command_ignore_querystring() { var request = new ProductsEdit.Command { Id = 10, Name = "iPhone 5S", ReturnUrl = "/Products" }; UrlLookup .For(request) .ShouldBe("/Products/Edit/10"); }