I am using ASP.NET Core 2.2, EF Core and MOQ. When I run the test I am getting this error:
Message: System.NotSupportedException : Invalid setup on a
The error you're receiving is because you need to declare the Movies property on your dbcontext as Virtual.
As someone pointed out in the comments, you should use EF's built in memory provider for testing.