public void Test_SeasonCommentsRequest_Validate_Throws_Exceptions() { // id is null var request = new SeasonCommentsRequest(); Action act = () => request.Validate(); act.Should().Throw <ArgumentNullException>(); // empty id request = new SeasonCommentsRequest { Id = string.Empty }; act = () => request.Validate(); act.Should().Throw <ArgumentException>(); // id with spaces request = new SeasonCommentsRequest { Id = "invalid id" }; act = () => request.Validate(); act.Should().Throw <ArgumentException>(); }
public void Test_SeasonCommentsRequest_Has_Valid_UriTemplate() { var request = new SeasonCommentsRequest(); request.UriTemplate.Should().Be("shows/{id}/seasons/{season}/comments{/sort_order}{?page,limit}"); }