public void Test_MovieListsRequest_Validate_Throws_Exceptions() { // id is null var request = new MovieListsRequest(); Action act = () => request.Validate(); act.Should().Throw <ArgumentNullException>(); // empty id request = new MovieListsRequest { Id = string.Empty }; act = () => request.Validate(); act.Should().Throw <ArgumentException>(); // id with spaces request = new MovieListsRequest { Id = "invalid id" }; act = () => request.Validate(); act.Should().Throw <ArgumentException>(); }
public void Test_MovieListsRequest_Has_Valid_UriTemplate() { var request = new MovieListsRequest(); request.UriTemplate.Should().Be("movies/{id}/lists{/type}{/sort_order}{?page,limit}"); }
public virtual Task <MovieListsResponse> GetAsync(MovieListsRequest request) => Client.SendAsync <MovieListsResponse>(request);