public void Test_AShowProgressRequest_1_Validate_Throws_Exceptions() { // id is null var requestMock = new ShowProgressRequestMock(); Action act = () => requestMock.Validate(); act.Should().Throw <ArgumentNullException>(); // empty id requestMock = new ShowProgressRequestMock { Id = string.Empty }; act = () => requestMock.Validate(); act.Should().Throw <ArgumentException>(); // id with spaces requestMock = new ShowProgressRequestMock { Id = "invalid id" }; act = () => requestMock.Validate(); act.Should().Throw <ArgumentException>(); }
public void Test_AShowProgressRequest_1_Returns_Valid_RequestObjectType() { var requestMock = new ShowProgressRequestMock(); requestMock.RequestObjectType.Should().Be(RequestObjectType.Shows); }
public void Test_AShowProgressRequest_1_Has_AuthorizationRequirement_NotRequired() { var requestMock = new ShowProgressRequestMock(); requestMock.AuthorizationRequirement.Should().Be(AuthorizationRequirement.Required); }