public void Test_ShowListsRequest_Validate_Throws_Exceptions() { // id is null var request = new ShowListsRequest(); Action act = () => request.Validate(); act.Should().Throw <ArgumentNullException>(); // empty id request = new ShowListsRequest { Id = string.Empty }; act = () => request.Validate(); act.Should().Throw <ArgumentException>(); // id with spaces request = new ShowListsRequest { Id = "invalid id" }; act = () => request.Validate(); act.Should().Throw <ArgumentException>(); }
public void Test_ShowListsRequest_Has_Valid_UriTemplate() { var request = new ShowListsRequest(); request.UriTemplate.Should().Be("shows/{id}/lists{/type}{/sort_order}{?page,limit}"); }