예제 #1
0
        public void RecognizerTestInit()
        {
            Load <Word>();
            CreatedWordsManager.ClearCreated();

            r = new SuggestionsMaker(session, AuthorityController.CurrentDoctor);
        }
예제 #2
0
파일: TagTest.cs 프로젝트: sm-g/diagnosis
        public void AutocompleteTestInit()
        {
            CreatedWordsManager.ClearCreated();

            var r = new SuggestionsMaker(session, AuthorityController.CurrentDoctor);

            a = new HrEditorAutocomplete(r);
        }
예제 #3
0
        public void AutocompleteTestInit()
        {
            CreatedWordsManager.ClearCreated();

            r     = new SuggestionsMaker(session, AuthorityController.CurrentDoctor);
            a     = new HrEditorAutocomplete(r);
            word  = session.Get <Word>(IntToGuid <Word>(1));
            icd1  = session.Get <IcdDisease>(1);
            q     = word.Title.Substring(0, word.Title.Length - 1);
            qFull = word.Title;

            a.SelectedTag = a.Tags.Last();
        }
예제 #4
0
        public void AutocompleteTestInit()
        {
            CreatedWordsManager.ClearCreated();

            r  = new SuggestionsMaker(session, AuthorityController.CurrentDoctor);
            bs = new BlankSetter(r.FirstMatchingOrNewWord, null, null);

            var a = new HrEditorAutocomplete(r);

            tag = new TagViewModel(a);

            word = session.Get <Word>(IntToGuid <Word>(1));
            icd1 = session.Get <IcdDisease>(1);
            q    = "123";

            //Contract.ContractFailed += (sender, e) =>
            //{
            //    e.SetUnwind(); // cause code to abort after event
            //    Assert.Fail(e.FailureKind.ToString() + ":" + e.Message);
            //};
        }