public void Test_AUserRecommendationsRequest_1_Returns_Valid_UriPathParameters() { // no parameters var requestMock = new UserRecommendationsRequestMock(); requestMock.GetUriPathParameters().Should().NotBeNull().And.BeEmpty().And.HaveCount(0); // with extended info var extendedInfo = new TraktExtendedInfo { Full = true }; requestMock = new UserRecommendationsRequestMock { ExtendedInfo = extendedInfo }; requestMock.GetUriPathParameters().Should().NotBeNull() .And.HaveCount(1) .And.Contain(new Dictionary <string, object> { ["extended"] = extendedInfo.ToString() }); // with extended info and limit var limit = 123U; requestMock = new UserRecommendationsRequestMock { ExtendedInfo = extendedInfo, Limit = limit }; requestMock.GetUriPathParameters().Should().NotBeNull() .And.HaveCount(2) .And.Contain(new Dictionary <string, object> { ["extended"] = extendedInfo.ToString(), ["limit"] = limit.ToString() }); }
public void Test_AUserRecommendationsRequest_1_Has_AuthorizationRequirement_Required() { var requestMock = new UserRecommendationsRequestMock(); requestMock.AuthorizationRequirement.Should().Be(AuthorizationRequirement.Required); }