public TextController(ITextStore textStore,
                       IGroupStore groupStore,
                       IModelFactory modelFactory)
 {
     //_textTempDb = textTempDb;
     //_groupTempDb = groupTempDb;
     _textStore    = textStore;
     _groupStore   = groupStore;
     _modelFactory = modelFactory;
 }
Example #2
0
 public GroupController(ITextStore textStore,
                        IGroupStore groupStore,
                        IModelFactory modelFactory)
 {
     //_tempDbText = textTempDb;
     //_tempDbGroup = groupTempDb;
     //_analysisController = analysisController;
     _textStore    = textStore;
     _groupStore   = groupStore;
     _modelFactory = modelFactory;
 }
        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);
        }
Example #4
0
 public HttpMachine()
 {
     sndTextStore = new TextStore()
     {
         Encoding = Encoding.UTF8
     };
     rcvTextStore = new TextStore()
     {
         Encoding = Encoding.UTF8
     };
     RequestMessage  = new HttpRequestMessage(sndTextStore);
     ResponseMessage = new HttpResponseMessage(rcvTextStore);
 }
 public GroupStore(FingerprintLite13Entities db, IModelFactory modelFactory, ITextStore textStore)
 {
     _db           = db;
     _modelFactory = modelFactory;
     _textStore    = textStore;
 }
Example #6
0
 public GetAllTextsQueryHandler(ITextStore store)
 {
     _store = store;
 }
Example #7
0
 public TextManager(ITextStore textStore)
 {
     _textStore = textStore;
 }
Example #8
0
 public HttpResponseMessage(ITextStore textStore)
     : base("response", textStore)
 {
 }
 public void OneTimeSetup()
 {
     _store = new TextStore(new TextDbContext(), new TextEntityToTextDtoConverter());
 }
Example #10
0
 public HttpRequestMessage(ITextStore textStore)
     : base("request", textStore)
 {
 }
 protected HttpMessage(string name, ITextStore textStore)
 {
     Name      = name;
     TextStore = textStore;
 }
Example #12
0
 public GetTextQueryHandler(ITextStore store)
 {
     _store = store;
 }
Example #13
0
 public AddTextCommandHandler(ITextStore store)
 {
     _store = store;
 }