public void Test_MovieRelatedMoviesRequest_Validate_Throws_Exceptions() { // id is null var request = new MovieRelatedMoviesRequest(); Action act = () => request.Validate(); act.Should().Throw <ArgumentNullException>(); // empty id request = new MovieRelatedMoviesRequest { Id = string.Empty }; act = () => request.Validate(); act.Should().Throw <ArgumentException>(); // id with spaces request = new MovieRelatedMoviesRequest { Id = "invalid id" }; act = () => request.Validate(); act.Should().Throw <ArgumentException>(); }
public void Test_MovieRelatedMoviesRequest_Has_Valid_UriTemplate() { var request = new MovieRelatedMoviesRequest(); request.UriTemplate.Should().Be("movies/{id}/related{?extended,page,limit}"); }