Exemplo n.º 1
0
 public void MemoryQueryReturnsArticles()
 {
     EFNoteworthyService noteworthyService = new EFNoteworthyService(_memoryFactory);
     var articles = noteworthyService.GetArticlesByTopic("ddd").ToArray();
     Assert.AreEqual("Entity Framework and the Repository Pattern", articles[0].Title);
     Assert.AreEqual("Correspondence and DDD", articles[1].Title);
 }
Exemplo n.º 2
0
 public void MyTestInitialize()
 {
     this._efFactory = new EFUnitOfWorkFactory();
     this._efNoteworthyService = new EFNoteworthyService(this._efFactory);
 }