public GetAatfInfoByAatfIdRequestHandlerTests()
        {
            this.authorization = AuthorizationBuilder.CreateUserWithAllRights();
            this.dataAccess    = A.Dummy <IGetAatfsDataAccess>();
            this.fakeMapper    = A.Fake <IMap <Aatf, AatfData> >();

            this.fixture = new Fixture();

            this.handler = new GetAatfInfoByAatfIdRequestHandler(this.authorization, this.fakeMapper, this.dataAccess);
        }
        public async Task HandleAsync_WhenUserCannotAccessInternalArea_ThrowsSecurityException()
        {
            // Arrange
            IWeeeAuthorization unuthorization = new AuthorizationBuilder().DenyInternalAreaAccess().Build();

            GetAatfInfoByAatfIdRequestHandler handler = new GetAatfInfoByAatfIdRequestHandler(
                unuthorization,
                A.Dummy <IMap <Aatf, AatfData> >(),
                A.Dummy <IGetAatfsDataAccess>());

            // Act
            Func <Task> testCode = async() => await handler.HandleAsync(A.Dummy <GetAatfById>());

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