Exemplo n.º 1
0
 public override void Handle(CommunicationEvents.ValueChanged message)
 {
     CommunicationDto dto = this.Load(message.CommunicationId);
     dto.CommunicationType = message.CommunicationType;
     dto.Value = message.Value;
     this.Save(dto);
 }
Exemplo n.º 2
0
 public override void Handle(CommunicationEvents.Created message)
 {
     CommunicationDto dto = this.Load(message.CommunicationId);
     if (dto != null) throw new Exception("Item with the same Id already created!");
     dto = new CommunicationDto();
     dto.CommunicationId = message.CommunicationId;
     dto.Owner = message.Owner;
     dto.OwnerId = message.OwnerId;
     this.Save(dto);
 }
Exemplo n.º 3
0
        public void Table()
        {
            var communicationEvent = new CommunicationEvents(this.Session).FindBy(M.CommunicationEvent.Subject, "meeting 0");

            var cell = this.page.Table
                       .FindRow(communicationEvent)
                       .FindCell("subject");

            Assert.Equal("meeting 0", cell.Element.Text);
        }
Exemplo n.º 4
0
 public override void Handle(CommunicationEvents.NoteChanged message)
 {
     CommunicationDto dto = this.Load(message.CommunicationId);
     dto.Note = message.Note;
     this.Save(dto);
 }
 public void When(CommunicationEvents.NoteChanged e)
 {
     this.Note = e.Note;
 }
 public void When(CommunicationEvents.ValueChanged e)
 {
     this.CommunicationType = e.CommunicationType;
     this.Value = e.Value;
 }
 public void When(CommunicationEvents.Created e)
 {
     this.CommunicationId = e.CommunicationId;
     this.Owner = e.Owner;
     this.OwnerId = e.OwnerId;
 }