public GetAatfComplianceYearsByAatfIdHandlerTests()
        {
            this.authorization = A.Fake <IWeeeAuthorization>();
            this.dataAccess    = A.Fake <IAatfDataAccess>();

            handler = new GetAatfComplianceYearsByAatfIdHandler(authorization, dataAccess);
        }
        public async Task HandleAsync_NoInternalAccess_ThrowsSecurityException()
        {
            var authorization = new AuthorizationBuilder().DenyInternalAreaAccess().Build();

            handler = new GetAatfComplianceYearsByAatfIdHandler(authorization, dataAccess);

            Func <Task> action = async() => await handler.HandleAsync(A.Dummy <GetAatfComplianceYearsByAatfId>());

            await action.Should().ThrowAsync <SecurityException>();
        }