public async Task Throws_exception_on_sender_not_specified()
            {
                //Arrange
                var clientConfiguration     = new ClientConfiguration(Environment.DifiQa, GetPostenTestCertificate());
                var jobStatusChangeResponse = new FakeHttpClientHandlerForJobStatusChangeResponse();
                var portalClient            = new PortalClient(clientConfiguration)
                {
                    HttpClient = GetHttpClientWithHandler(jobStatusChangeResponse)
                };

                //Act
                await Assert.ThrowsAsync <SenderNotSpecifiedException>(async() => await portalClient.GetStatusChange().ConfigureAwait(false)).ConfigureAwait(false);
            }
            public async Task Returns_portal_job_status_change_on_ok_response()
            {
                //Arrange
                var jobStatusChangeResponse = new FakeHttpClientHandlerForJobStatusChangeResponse();
                var portalClient            = new PortalClient(GetClientConfiguration())
                {
                    HttpClient = GetHttpClientWithHandler(jobStatusChangeResponse)
                };

                object expectedResponseType = typeof(JobStatusChanged);

                //Act
                var actualResponse = (await portalClient.GetStatusChange().ConfigureAwait(false));

                //Assert
                Assert.Equal(expectedResponseType, actualResponse.GetType());
                Assert.Equal(jobStatusChangeResponse.NextPermittedPollTime, actualResponse.NextPermittedPollTime);
            }