Beispiel #1
0
        public void CaseActionsGetAllLawCasesTest()
        {
            var optionBuilder = new DbContextOptionsBuilder <ApplicationDbContext>()
                                .UseInMemoryDatabase("testDb4");
            var dbContext = new ApplicationDbContext(optionBuilder.Options);

            var service = new CaseActionsService(dbContext);

            var result = service.GetAllLawCases();

            Assert.NotNull(result);
        }