public void Test1() { var options = new DbContextOptionsBuilder <StudioContext>() .UseInMemoryDatabase(databaseName: "Db") .Options; var context = new StudioContext(options); Seed(context); var query = new GenresController(context); var result = query.Execute(); Assert.Equal(2, result.Count); }