public static async Task RemoveCountry(CountryId id) { var connectionString = ConnectivityService.GetConnectionString("TEMP"); var context = new SplurgeStopDbContext(connectionString); var repository = new CountryRepository(context); var unitOfWork = new EfCoreUnitOfWork(context); var service = new CountryService(repository, unitOfWork); var countryController = new CountryController(service); var updateCommand = new Commands.DeleteCountry { Id = id }; await countryController.DeleteCountry(updateCommand); }