Example #1
0
        public void GetInbox()
        {
            var request  = new FortnoxApiRequest(this.connectionSettings.AccessToken, this.connectionSettings.ClientSecret);
            var articles = InboxService.GetInboxAsync(request, "inbox_a").GetAwaiter().GetResult();

            Assert.IsNotNull(articles);
        }
Example #2
0
        public void GetInbox()
        {
            var request  = new FortnoxApiRequest(this.connectionSettings.AccessToken, this.connectionSettings.ClientSecret);
            var articles = InboxService.GetInboxAsync(request, "inbox_d").GetAwaiter().GetResult();

            Assert.IsNotNull(articles);
            Assert.AreEqual(articles.Folder.Files.First().Name, "WebSocket Fortnox API.pdf");
            Assert.AreEqual(articles.Folder.Files.First().Size, 101902);
        }