public async Task TestUpdatePost()
        {
            // Create a post
            LabelRoot post = new LabelRoot
            {
                Label = new Label
                {
                    Description = "TEST-UPDATED"
                }
            };

            // Update the post
            FortnoxResponse<LabelRoot> fr = await config.fortnox_client.Update<LabelRoot>(post, "labels/6");

            // Log the error
            if (fr.model == null)
            {
                config.logger.LogError(fr.error);
            }

            // Test evaluation
            Assert.AreNotEqual(null, fr.model);

        } // End of the TestUpdatePost method
Exemple #2
0
 // Use this for initialization
 void Start()
 {
     LabelRoot.ParentToMe(this.gameObject);
 }