Exemplo n.º 1
0
        // 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);
            }
        }
Exemplo n.º 2
0
        // 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);
            }
        }
Exemplo n.º 3
0
 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");
     }
 }