public void MemoryQueryReturnsArticles() { L2SNoteworthyService noteworthyService = new L2SNoteworthyService(_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._l2sFactory = new L2SUnitOfWorkFactory(); this._l2snoteworthyService = new L2SNoteworthyService(this._l2sFactory); }