public void GetTestSheetsOneOfTwoSheetTest() { var testSheets = new List <TestSheet> { new TestSheet { FaNr = "FA654321" }, new TestSheet { FaNr = "FA123456" } }; var testSheetRepository = MockHelperBll.GetTestSheetRepositoryForHistory( testSheets.AsQueryable() ); var target = new HistoryBll { TestSheetRepository = testSheetRepository }; var actual = target.GetTestSheets("FA123456"); Assert.Equal(1, actual.ToList() .Count); }
public void GetTestSheetsNoSheetTest() { var testSheets = new List <TestSheet>(); var testSheetRepository = MockHelperBll.GetTestSheetRepositoryForHistory( testSheets.AsQueryable() ); var target = new HistoryBll { TestSheetRepository = testSheetRepository }; var actual = target.GetTestSheets("FA123456"); Assert.Equal(0, actual.ToList() .Count); }