// ReSharper disable once UnusedParameter.Local static void Main(string[] args) { Wistia.Core.WistiaDataClient client = new Wistia.Core.WistiaDataClient(apiKey: ""); Console.WriteLine("Here is a listing of your Wistia projects:"); foreach (var project in client.Projects.All().Result) { Console.WriteLine(project.name); } }
// ReSharper disable once UnusedParameter.Local static void Main(string[] args) { Wistia.Core.WistiaDataClient client = new Wistia.Core.WistiaDataClient(apiKey: ""); Console.WriteLine("Here is a listing of your Wistia projects:"); foreach (var project in client.Projects.All().Result) { Console.WriteLine(project.name); } }
public void DoesBlankApiKeyThrowArgumentNullException() { try { Wistia.Core.WistiaDataClient client = new Wistia.Core.WistiaDataClient(apiKey: ""); Assert.Fail("Expected an exception to be thrown for the blank api key"); } catch (ArgumentNullException argNullEx) { Assert.IsNotNull(argNullEx); } catch (Exception ex) { Assert.Fail("Expected an ArgumentNullException"); } }