Skip to content

Instantly share code, notes, and snippets.

Created January 28, 2022 12:39
What would you like to do?
public class WeatherHooks
private readonly IObjectContainer _objectContainer;
private const string AppSettingsFile = "appsettings.json";
public WeatherHooks(IObjectContainer objectContainer)
_objectContainer = objectContainer;
public async Task RegisterServices()
var factory = GetWebApplicationFactory();
await ClearData(factory);
var jsonFilesRepo = new JsonFilesRepository();
var repository = (IWeatherRepository)factory.Services.GetService(typeof(IWeatherRepository))!;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment