public void Test_UserRatingsRequest_Validate_Throws_Exceptions()
        {
            // username is null
            var request = new UserRatingsRequest();

            Action act = () => request.Validate();

            act.Should().Throw <ArgumentNullException>();

            // empty username
            request = new UserRatingsRequest {
                Username = string.Empty
            };

            act = () => request.Validate();
            act.Should().Throw <ArgumentException>();

            // username with spaces
            request = new UserRatingsRequest {
                Username = "******"
            };

            act = () => request.Validate();
            act.Should().Throw <ArgumentException>();
        }
        public void Test_UserRatingsRequest_Has_Valid_UriTemplate()
        {
            var request = new UserRatingsRequest();

            request.UriTemplate.Should().Be("users/{username}/ratings{/type}{/rating}{?extended,page,limit}");
        }
        public void Test_UserRatingsRequest_Has_AuthorizationRequirement_Optional()
        {
            var request = new UserRatingsRequest();

            request.AuthorizationRequirement.Should().Be(AuthorizationRequirement.Optional);
        }