public GetAllAatfSentOnDataCsvHandlerTests()
        {
            context          = A.Fake <WeeeContext>();
            commonDataAccess = A.Fake <ICommonDataAccess>();
            storedProcedures = A.Fake <IStoredProcedures>();
            fixture          = new Fixture();

            A.CallTo(() => context.StoredProcedures).Returns(storedProcedures);

            handler = new GetAllAatfSentOnDataCsvHandler(new AuthorizationBuilder().AllowInternalAreaAccess().Build(), context, commonDataAccess);
        }
        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);
        }