public EditObligatedReusedHandlerTests()
        {
            var authorization = A.Fake <IWeeeAuthorization>();

            obligatedReusedDataAccess = A.Dummy <IObligatedReusedDataAccess>();
            genericDataAccess         = A.Fake <IGenericDataAccess>();

            handler = new EditObligatedReusedHandler(authorization, obligatedReusedDataAccess, genericDataAccess);
        }
        public async Task HandleAsync_NoExternalAccess_ThrowsSecurityException()
        {
            var authorization = new AuthorizationBuilder().DenyExternalAreaAccess().Build();

            var handlerLocal = new EditObligatedReusedHandler(authorization, obligatedReusedDataAccess, genericDataAccess);

            Func <Task> action = async() => await handlerLocal.HandleAsync(A.Dummy <EditObligatedReused>());

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