We should get “Program” class from the main project but it automatically references Microsoft.AspNetCore.Mvc.Testing.Program
class
public class VersioningTests : IClassFixture<WebApplicationFactory<Program>>
this code must reference our main Program code. So we must put a reference to the Program class on the last line in Program.cs file:
public partial class Program { }