コード例 #1
0
        public async void TestThrowsUnauthorizedException()
        {
            await Assert.ThrowsAsync <NotAuthorizedException>(async() =>
            {
                var client = new ShipStationClient(new Configuration
                {
                    UserName   = "******",
                    UserApiKey = "incorrect"
                });

                await client.Orders.GetAsync(1);
            });
        }
コード例 #2
0
 public TestBase()
 {
     Client = new ShipStationClient(GetConfigurationFromFile());
 }