Exemplo n.º 1
0
        public void BaseFixtureSetup()
        {
            _config = CreateConfiguration();

            _api = new RestfulBusinessApiClient(_config);

            _api.Authenticate();
        }
Exemplo n.º 2
0
        public void Authenticate_InvalidCredentials_ThrowsHttpRequestException()
        {
            var config = CreateConfiguration();

            config.UserName = "******";

            var api = new RestfulBusinessApiClient(config);

            Assert.Throws <HttpRequestException>(() => api.Authenticate());
        }