Exemplo n.º 1
0
        public void Handle(AddPersonToContacts addPerson)
        {
            var person = new PersonContactInfo
            {
                Id          = Guid.NewGuid(),
                FirstName   = addPerson.FirstName,
                LastName    = addPerson.LastName,
                HomePhone   = addPerson.HomePhone,
                WorkPhone   = addPerson.WorkPhone,
                MobilePhone = addPerson.MobilePhone,
                Email       = addPerson.EmailAddress
            };

            this.people.Add(person);
        }
 public void WithPerson(PersonContactInfo personContact)
 {
     this.person = personContact;
     NotifyOfPropertyChange(() => FirstName);
     NotifyOfPropertyChange(() => LastName);
 }