Esempio n. 1
0
        public void Init()
        {
            serviceClient = new CustomerService3Client();

            // create test customers that can be used with the create and update methods
            customer_in.Alias = alias;
            TAddressNamed bill = new TAddressNamed();

            bill.FirstName             = "Klaus";
            bill.LastName              = "Klaussen";
            bill.Street                = "Musterstraße 2";
            bill.EMail                 = "*****@*****.**";
            bill.Birthday              = new DateTime(1976, 9, 25, 11, 33, 0, DateTimeKind.Local);
            bill.BirthdaySpecified     = true;
            bill.VerifiedOn            = new DateTime(2005, 1, 1);
            bill.VerifiedOnSpecified   = true;
            customer_in.BillingAddress = bill;
            TAttribute attr = new TAttribute();

            attr.Name                    = "Comment";
            attr.Value                   = "my customer comment";
            customer_in.Attributes       = new TAttribute[] { attr };
            customer_in.IsDoOrderAllowed = true;


            customer_update.Path = path + alias;
            TAddressNamed bill_update = new TAddressNamed();

            bill_update.FirstName           = "Hans";
            bill_update.LastName            = "Hanssen";
            bill_update.Street              = "Musterstraße 2b";
            bill_update.Birthday            = new DateTime(1976, 9, 25, 11, 33, 0, DateTimeKind.Local);
            bill_update.BirthdaySpecified   = true;
            bill_update.VerifiedOn          = new DateTime(2005, 1, 1);
            bill_update.VerifiedOnSpecified = true;
            customer_update.BillingAddress  = bill_update;
            TAttribute attr_update = new TAttribute();

            attr_update.Name                 = "Comment";
            attr_update.Value                = "my updated customer comment";
            customer_update.Attributes       = new TAttribute[] { attr_update };
            customer_update.IsDoOrderAllowed = true;
        }
Esempio n. 2
0
        public void Init()
        {
            serviceClient = new CustomerService3Client();

            // create test customers that can be used with the create and update methods
            customer_in.Alias = alias;
            TAddressNamed bill = new TAddressNamed();
            bill.FirstName = "Klaus";
            bill.LastName = "Klaussen";
            bill.Street = "Musterstraße 2";
            bill.EMail = "*****@*****.**";
            bill.Birthday = new DateTime(1976, 9, 25, 11, 33, 0, DateTimeKind.Local);
            bill.BirthdaySpecified = true;
            bill.VerifiedOn = new DateTime(2005, 1, 1);
            bill.VerifiedOnSpecified = true;
            customer_in.BillingAddress = bill;
            TAttribute attr = new TAttribute();
            attr.Name = "Comment";
            attr.Value = "my customer comment";
            customer_in.Attributes = new TAttribute[] { attr };
            customer_in.IsDoOrderAllowed = true;


            customer_update.Path = path + alias;
            TAddressNamed bill_update = new TAddressNamed();
            bill_update.FirstName = "Hans";
            bill_update.LastName = "Hanssen";
            bill_update.Street = "Musterstraße 2b";
            bill_update.Birthday = new DateTime(1976, 9, 25, 11, 33, 0, DateTimeKind.Local);
            bill_update.BirthdaySpecified = true;
            bill_update.VerifiedOn = new DateTime(2005, 1, 1);
            bill_update.VerifiedOnSpecified = true;
            customer_update.BillingAddress = bill_update;
            TAttribute attr_update = new TAttribute();
            attr_update.Name = "Comment";
            attr_update.Value = "my updated customer comment";
            customer_update.Attributes = new TAttribute[] { attr_update };
            customer_update.IsDoOrderAllowed = true;

        }