예제 #1
0
        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);
        }
예제 #2
0
        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);
        }