public void FindByDocketNumber() { var dbContext = SetUpThreeCases("test-find-by-docket-number"); using (var context = new CaseContext(dbContext)) { var repository = new CaseRepository(context); var result = repository.FindByDocketNumber("test docket number two"); Assert.AreEqual(1, result.Count); Assert.AreEqual("2", result[0].Id); Assert.AreEqual("test docket number two", result[0].DocketNumber); Assert.AreEqual("test title two", result[0].Title); Assert.AreEqual("test description two", result[0].Description); Assert.AreEqual(_openDateTwo, result[0].OpenDate); } }