Exemple #1
0
        public async Task ItCanUpdateAnAsset()
        {
            var updatedDescription = $"Changed {DateTime.UtcNow}";
            var asset = new Asset()
            {
                Id          = 1,
                Description = updatedDescription,
            };

            var request = new FortnoxApiRequest(this.connectionSettings.AccessToken, this.connectionSettings.ClientSecret);
            var result  = await AssetsService.UpdateAssetAsync(request, asset);

            Assert.AreEqual(updatedDescription, result.Description);
        }