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); }
public void MyTestInitialize() { this._efFactory = new EFUnitOfWorkFactory(); this._efNoteworthyService = new EFNoteworthyService(this._efFactory); }