private void OnExecute() { var devFunService = new DevFunService(new Uri(this.ServiceBaseUrl)); var dataInitializer = new DataInitializer(devFunService); dataInitializer.InitializeData().Wait(); Console.WriteLine("Data initialized."); }
public DataInitializer(DevFunService service) { this.service = service ?? throw new ArgumentNullException(nameof(service)); }