Esempio n. 1
0
        private void CreateVendorContact()
        {
            _contact1v1 = new VendorContact
            {
                Address2  = "4600 Guadalupe St",
                Address1  = "B113",
                City      = "Austin",
                Email     = "*****@*****.**",
                FirstName = "Amahl",
                LastName  = "Harik",
                Phone     = "512.228.6069",
                Fax       = "512.228.60690",
                State     = "RI",
                Status    = "Active",
            };
            _contact1v2 = new VendorContact
            {
                Address2  = "4600 Guadalupe St",
                Address1  = "B113",
                City      = "Austin",
                Email     = "*****@*****.**",
                FirstName = "Amahl",
                LastName  = "Harik",
                Phone     = "512.228.6069",
                Fax       = "512.228.60690",
                State     = "RI",
                Status    = "Active",
            };
            _contact2v1 = new VendorContact
            {
                Address2  = "4600 Guadalupe St",
                Address1  = "B113",
                City      = "Austin",
                Email     = "*****@*****.**",
                FirstName = "Raif",
                LastName  = "Harik",
                Phone     = "512.228.6069",
                Fax       = "512.228.60690",
                State     = "Tx",
                Status    = "Active",
            };
            _contact2v2 = new VendorContact
            {
                Address2  = "4600 Guadalupe St",
                Address1  = "B113",
                City      = "Austin",
                Email     = "*****@*****.**",
                FirstName = "Raif",
                LastName  = "Harik",
                Phone     = "512.228.6069",
                Fax       = "512.228.60690",
                State     = "Tx",
                Status    = "Active",
            };
            _vendor1.AddContact(_contact1v1);
            _vendor1.AddContact(_contact2v1);
            _vendor2.AddContact(_contact1v2);
            _vendor2.AddContact(_contact2v2);

            _repository.Save(_contact1v1);
            _repository.Save(_contact2v1);
            _repository.Save(_contact1v2);
            _repository.Save(_contact2v2);
            _repository.Save(_vendor1);
            _repository.Save(_vendor2);
        }