Exemplo n.º 1
0
        public void TestApiEndPointBranchUK()
        {
            ExactOnlineService service = new ExactOnlineService();

            string expected = "https://start.exactonline.co.uk";
            string actual = service.ApiEndPoint(Region.UK);

            Assert.AreEqual(expected, actual);
        }
Exemplo n.º 2
0
        public void TestAuthUrl()
        {
            ExactOnlineService service = new ExactOnlineService();

            Uri expected = new Uri("https://start.exactonline.co.uk/api/oauth2/auth?response_type=code&client_id=6784der2-l98r-3eo0-3333-k3235g98tu75&redirect_uri=https:%2F%2Flocalhost%2FExactOnline%2FAuthorize");
            Uri actual = service.AuthUrl();

            Assert.AreEqual(expected.ToString(), actual.ToString());
        }
Exemplo n.º 3
0
        public void TestApiEndPoint()
        {
            ExactOnlineService service = new ExactOnlineService();

            string expected = "https://start.exactonline.nl";
            string actual = service.ApiEndPoint();

            Assert.AreEqual(expected, actual);
        }