Beispiel #1
0
        public async void FilterTitleWithOwner()
        {
            var options = new DbContextOptionsBuilder <ApplicationDbContext>().UseInMemoryDatabase(databaseName: "Test_AddNewItem").Options;

            using (var context = new ApplicationDbContext(options))
            {
                var service = new TodoItemService(context);

                var creatorUser = new ApplicationUser
                {
                    Id       = "fake-000",
                    UserName = "******"
                };

                var busqueda = await service.Search("Test", creatorUser);

                Assert.True(busqueda.Length > 0);
            }
        }