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