public async Task ShouldRemoveNameandDescriptionDiscountCodeAsync()
        {
            // Arrange
            var discountCode = await Helper.CreateTestDiscountCode(this._project, this._client);

            var setNameAction        = new SetNameAction();
            var setDescriptionAction = new SetDescriptionAction();

            // Act
            var updatedDiscountCodeResponse = await this._client.DiscountCodes()
                                              .UpdateDiscountCodeAsync(discountCode, new List <UpdateAction> {
                setNameAction, setDescriptionAction
            });


            // Assert
            var updatedDiscountCode = updatedDiscountCodeResponse.Result;

            Assert.NotNull(updatedDiscountCode);
            Assert.NotNull(updatedDiscountCode.Id);
            Assert.Equal(0, updatedDiscountCode.Name.Values.Count);
            Assert.Equal(0, updatedDiscountCode.Description.Values.Count);

            // Cleanup
            await Helper.DeleteDiscountCode(this._client, updatedDiscountCode);
        }
        public async Task ShouldSetNameSetDescriptionDiscountCodeAsync()
        {
            // Arrange
            var discountCode = await Helper.CreateTestDiscountCode(this._project, this._client);

            LocalizedString name        = new LocalizedString();
            LocalizedString description = new LocalizedString();

            foreach (string language in this._project.Languages)
            {
                string randomPostfix = Helper.GetRandomString(10);
                name.SetValue(language, string.Concat("change-discount-code-name", language, " ", randomPostfix));
                description.SetValue(language, string.Concat("change-discount-code-description", language, "-", randomPostfix));
            }
            var setNameAction = new SetNameAction {
                Name = name
            };
            var setDescriptionAction = new SetDescriptionAction {
                Description = description
            };

            // Act
            var updatedDiscountCodeResponse = await this._client.DiscountCodes()
                                              .UpdateDiscountCodeAsync(discountCode, new List <UpdateAction> {
                setNameAction, setDescriptionAction
            });


            // Assert
            var updatedDiscountCode = updatedDiscountCodeResponse.Result;

            Assert.NotNull(updatedDiscountCode);
            Assert.NotNull(updatedDiscountCode.Id);
            Assert.Equal(updatedDiscountCode.Name.Values, name.Values);
            Assert.Equal(updatedDiscountCode.Description.Values, description.Values);

            // Cleanup
            await Helper.DeleteDiscountCode(this._client, updatedDiscountCode);
        }