public async Task GetReturnData_NoExternalAccess_ThrowsSecurityException()
        {
            var authorization = new AuthorizationBuilder().DenyExternalAreaAccess().Build();

            populatedReturn = new GetPopulatedReturn(authorization,
                                                     A.Dummy <IReturnDataAccess>(),
                                                     A.Dummy <IMap <ReturnQuarterWindow, ReturnData> >(),
                                                     A.Dummy <IQuarterWindowFactory>(),
                                                     A.Dummy <INonObligatedDataAccess>(),
                                                     A.Dummy <IFetchObligatedWeeeForReturnDataAccess>(),
                                                     A.Dummy <IFetchAatfDataAccess>(),
                                                     A.Dummy <IReturnSchemeDataAccess>(),
                                                     A.Dummy <IGenericDataAccess>(),
                                                     systemDataDataAccess);

            Func <Task> action = async() => await populatedReturn.GetReturnData(A.Dummy <Guid>(), A.Dummy <bool>());

            await action.Should().ThrowAsync <SecurityException>();
        }
        public async Task GetReturnData_GivenReturn_ReturnShouldBeRetrieved()
        {
            var returnId = Guid.NewGuid();

            var result = await populatedReturn.GetReturnData(returnId, A.Dummy <bool>());

            A.CallTo(() => returnDataAccess.GetById(returnId)).MustHaveHappened(Repeated.Exactly.Once);
        }