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