Example #1
0
        public BcrReader(
            ILogging log,
            BcrOptions options,
            IFile <Bcr> bcrFile,
            IFile <SerializableCostCentreList> costCentreFile,
            IUnit4EngineFactory factory,
            ICostCentresProvider provider)
        {
            _log         = log;
            _bcrFile     = bcrFile;
            _factory     = factory;
            _updateCache = options.UpdateCache;

            var costCentreList =
                new Cache <SerializableCostCentreList>(
                    () => provider.GetCostCentres(),
                    costCentreFile);

            _hierarchy = new CostCentreHierarchy(costCentreList, options);
        }
Example #2
0
 public CostCentresProvider(IUnit4EngineFactory factory)
 {
     _factory = factory;
 }
Example #3
0
 public BcrReport(IUnit4EngineFactory factory, ILogging log)
 {
     _factory = factory;
     _log     = log;
 }