예제 #1
0
        public void Save_AfterCreatingFromString_GivesMessage()
        {
            using (new ErrorReport.NonFatalErrorReportExpected())
                using (var r = AnnotationRepository.FromString("id", @"<notes version='0'><annotation guid='123'>
<message guid='234'>&lt;p&gt;hello</message></annotation></notes>"))
                {
                    //  Assert.Throws<InvalidOperationException>(() =>
                    r.Save(new ConsoleProgress());
                }
        }
예제 #2
0
 private void initiaizeTest()
 {
     string connectionString = "server=wt-220.ruc.dk;database=raw4;uid=raw4;pwd=raw4";
     _annoRepository = new AnnotationRepository(connectionString);
 }
예제 #3
0
 private void initializeTest()
 {
     _annotationMaper = new AnnotationMapper("server=wt-220.ruc.dk;database=raw4;uid=raw4;pwd=raw4");
     _annotationRepository = new AnnotationRepository(_annotationMaper);
 }