public void Test_AUserHiddenItemsRequest_Returns_Valid_UriPathParameters() { var requestMock = new UserHiddenItemsRequestMock { Section = TraktHiddenItemsSection.Calendar }; requestMock.GetUriPathParameters().Should().NotBeNull() .And.HaveCount(1) .And.Contain(new Dictionary <string, object> { ["section"] = TraktHiddenItemsSection.Calendar.UriName, }); }
public void Test_AUserHiddenItemsRequest_Validate_Throws_Exceptions() { // section is null var requestMock = new UserHiddenItemsRequestMock(); Action act = () => requestMock.Validate(); act.Should().Throw <ArgumentNullException>(); // section is unspecified requestMock = new UserHiddenItemsRequestMock { Section = TraktHiddenItemsSection.Unspecified }; act = () => requestMock.Validate(); act.Should().Throw <ArgumentException>(); }
public void Test_AUserHiddenItemsRequest_Has_AuthorizationRequirement_Required() { var requestMock = new UserHiddenItemsRequestMock(); requestMock.AuthorizationRequirement.Should().Be(AuthorizationRequirement.Required); }