예제 #1
0
        public void ShouldRetriveFilteredInpections()
        {
            using (var context = InitAndGetDbContext())
            {
                //Arrange
                var repositori = new InspectionRepository(context);

                //Act
                IEnumerable <Inspection> result = repositori.GetFiltered(o => o.Status == testStatus);

                //Assert
                Assert.Single(result);
            }
        }