Integration testing ASP.NET Core with .NET Framework – can’t find deps.json

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 { }

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)