public async Task GetAllAatfSentOnDataCsvHandler_NoComplianceYear_ThrowsArgumentException()
        {
            // Arrange
            var complianceYear = 0;

            var request = new GetAllAatfSentOnDataCsv(complianceYear, string.Empty, null, null);

            // Act
            Func <Task> action = async() => await handler.HandleAsync(request);

            // Assert
            await Assert.ThrowsAsync <ArgumentException>(action);
        }
        public async Task GetAllAatfSentOnDataCsvHandler_NotInternalUser_ThrowsSecurityException()
        {
            var authorization = new AuthorizationBuilder().DenyInternalAreaAccess().Build();
            var handler       = new GetAllAatfSentOnDataCsvHandler(authorization, context, commonDataAccess);
            var request       = new GetAllAatfSentOnDataCsv(ComplianceYear, string.Empty, null, null);

            // Act
            Func <Task> action = async() => await handler.HandleAsync(request);

            // Assert
            await Assert.ThrowsAsync <SecurityException>(action);
        }