public void Setup() { _primary = new MockRepo(); _other1 = new MockRepo(); _other2 = new MockRepo(); _primary.AddKey = "abc"; _msar = new MultiSourceAnnotationRepository(_primary, new IAnnotationRepository[] { _other1, _other2 }); _primaryAnnotation = new Annotation(XElement.Parse("<_primaryAnnotation class='foo' guid='12D388BD-E83D-41AD-BAB3-B7E46D8C13CE'/>")); _primary.Results["abc"] = new List <Annotation> { _primaryAnnotation }; _other1Annotation = new Annotation(XElement.Parse("<_primaryAnnotation class='foo' guid='12D388BD-E83D-41AD-BAB3-B7E46D8C13CE'/>")); _other1.Results["abc"] = new List <Annotation> { _other1Annotation }; _other2Annotation1 = new Annotation(XElement.Parse("<_primaryAnnotation class='foo' guid='12D388BD-E83D-41AD-BAB3-B7E46D8C13CE'/>")); _other2Annotation2 = new Annotation(XElement.Parse("<_primaryAnnotation class='foo' guid='12D388BD-E83D-41AD-BAB3-B7E46D8C13CE'/>")); _other2.Results["abc"] = new List <Annotation> { _other2Annotation1, _other2Annotation2 }; }
public void Setup() { _primary = new MockRepo(); _other1 = new MockRepo(); _other2 = new MockRepo(); _primary.AddKey = "abc"; _msar = new MultiSourceAnnotationRepository(_primary, new IAnnotationRepository[] { _other1, _other2 }); _primaryAnnotation = new Annotation(XElement.Parse("<_primaryAnnotation class='foo' guid='12D388BD-E83D-41AD-BAB3-B7E46D8C13CE'/>")); _primary.Results["abc"] = new List<Annotation> { _primaryAnnotation }; _other1Annotation = new Annotation(XElement.Parse("<_primaryAnnotation class='foo' guid='12D388BD-E83D-41AD-BAB3-B7E46D8C13CE'/>")); _other1.Results["abc"] = new List<Annotation> { _other1Annotation }; _other2Annotation1 = new Annotation(XElement.Parse("<_primaryAnnotation class='foo' guid='12D388BD-E83D-41AD-BAB3-B7E46D8C13CE'/>")); _other2Annotation2 = new Annotation(XElement.Parse("<_primaryAnnotation class='foo' guid='12D388BD-E83D-41AD-BAB3-B7E46D8C13CE'/>")); _other2.Results["abc"] = new List<Annotation> { _other2Annotation1, _other2Annotation2 }; }