Exemplo n.º 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);
            });
        }
Exemplo n.º 2
0
 public TestBase()
 {
     Client = new ShipStationClient(GetConfigurationFromFile());
 }