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

            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.IsNotNull(updatedDiscountCode);
            Assert.IsNotNull(updatedDiscountCode.Id);
            Assert.AreEqual(0, updatedDiscountCode.Name.Values.Count);
            Assert.AreEqual(0, updatedDiscountCode.Description.Values.Count);

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

            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.IsNotNull(updatedDiscountCode);
            Assert.IsNotNull(updatedDiscountCode.Id);
            Assert.AreEqual(updatedDiscountCode.Name.Values, name.Values);
            Assert.AreEqual(updatedDiscountCode.Description.Values, description.Values);

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