public void Initialize() { _db = new FingerprintLite13Entities(); _modelFactory = new ModelFactory(); _textStore = new TextStore(_db, _modelFactory); _uniqueNames = new ConcurrentStack <string>(); //Assuming we will never need more than 2 text names per method int namesNeeded = 2 * (this.GetType()).GetMethods().Count(); GenerateNames(namesNeeded, _uniqueNames); }
public TextStore(FingerprintLite13Entities db, IModelFactory modelFactory) { _db = db; _modelFactory = modelFactory; }
public GroupStore(FingerprintLite13Entities db, IModelFactory modelFactory, ITextStore textStore) { _db = db; _modelFactory = modelFactory; _textStore = textStore; }