public ResultProcessor()
 {
     _db           = new Database(() => { return(new SqlConnection("Server=.;Database=BPO;Trusted_Connection=True;")); });
     _dtpResolver  = new ResolverCache <string, DTP>();
     _appResolver  = new ResolverCache <string, Applications>();
     _tranResolver = new ResolverCache <string, Transactions>();
 }
 public TValue GetOrCreate <TValue>(string name, ResolverCache <string, TValue> resolverCache) where TValue : BaseIdEntity
 {
     return(resolverCache.Get(name,
                              (k) => { return GetValue <TValue>(k); },
                              (k) => { return CreateEntity <TValue>(k); }));
 }