public void Test_CommentRepliesRequest_Validate_Throws_Exceptions() { // id is null var request = new CommentRepliesRequest(); Action act = () => request.Validate(); act.Should().Throw <ArgumentNullException>(); // empty id request = new CommentRepliesRequest { Id = string.Empty }; act = () => request.Validate(); act.Should().Throw <ArgumentException>(); // id with spaces request = new CommentRepliesRequest { Id = "invalid id" }; act = () => request.Validate(); act.Should().Throw <ArgumentException>(); }
public void Test_CommentRepliesRequest_Returns_Valid_RequestObjectType() { var request = new CommentRepliesRequest(); request.RequestObjectType.Should().Be(RequestObjectType.Comments); }
public void Test_CommentRepliesRequest_Has_Valid_UriTemplate() { var request = new CommentRepliesRequest(); request.UriTemplate.Should().Be("comments/{id}/replies{?page,limit}"); }
public void Test_CommentRepliesRequest_Has_AuthorizationRequirement_NotRequired() { var request = new CommentRepliesRequest(); request.AuthorizationRequirement.Should().Be(AuthorizationRequirement.NotRequired); }