public FileValidationController( IFcsContext fcsContext, IOrganisationsContext organisationsContext, ILogger logger) { _fcsContext = fcsContext; _organisationsContext = organisationsContext; _logger = logger; }
public async Task <List <DataExtractFcsInfo> > GetFCSForDataExtractReport(IEnumerable <string> OrganisationIds, CancellationToken cancellationToken) { using (IFcsContext fcsContext = _fcsContextFunc()) { return(await fcsContext.Contractors .Include(x => x.Contracts) .Where(x => OrganisationIds.Contains(x.OrganisationIdentifier, StringComparer.OrdinalIgnoreCase)) .GroupBy(x => new { x.OrganisationIdentifier, x.Ukprn }) .Select(x => new DataExtractFcsInfo { OrganisationIdentifier = x.Key.OrganisationIdentifier, UkPrn = x.Key.Ukprn }).ToListAsync(cancellationToken)); } }
public ReferenceDataRepository( ILogger logger, IPostcodes postcodes, ILARS lars, IOrganisations organisations, IFcsContext fcsContext, IULN ulnContext) { _logger = logger; _postcodes = postcodes; _lars = lars; _organisations = organisations; _fcsContext = fcsContext; _ulnContext = ulnContext; }
public FCSDataRetrievalService(IFcsContext fcs) { _fcs = fcs; }
public FcsContractsPersistenceService(IFcsContext fcsContext) { _fcsContext = fcsContext; }
private FCSDataRetrievalService NewService(IFcsContext fcs = null, ICache <IMessage> messageCache = null) { return(new FCSDataRetrievalService(fcs, messageCache)); }
private FCSDataService NewService(IFcsContext context) { return(new FCSDataService(context)); }
private FCSDataRetrievalService NewService(IFcsContext fcs = null) { return(new FCSDataRetrievalService(fcs)); }
public FCSDataService(IFcsContext fcsContext) { _fcsContext = fcsContext; }
/// <summary> /// Initializes a new instance of the <see cref="FCSDataRetrievalService"/> class. /// </summary> /// <param name="fcs">The FCS.</param> /// <param name="messageCache">The message cache.</param> public FCSDataRetrievalService(IFcsContext fcs, ICache <IMessage> messageCache) : base(messageCache) { _fcs = fcs; }