how to unit test dbcontext in .net core

Code Example - how to unit test dbcontext in .net core

                
                        var options = new DbContextOptionsBuilder<MovieDbContext>()
            .UseInMemoryDatabase(databaseName: "Db")
            .Options;

var context = new MovieDbContext(options);