public void RemoveSpeaker(string communityId, string talkDraftId, string speakerId)
 {
     try
     {
         var draftKey = new TalkKey(communityId, talkDraftId);
         _draftTalkService.RemoveSpeaker(draftKey, speakerId);
     }
     catch (Exception ex)
     {
         if (ex is DomainException)
         {
             throw;
         }
         throw new UnexpectedException("Remove speaker failed.", ex);
     }
 }
Exemplo n.º 2
0
 public TalkDraft(TalkKey key)
 {
     Key        = key ?? throw new ArgumentNullException(nameof(key));
     Speakers   = new List <SpeakerReference>();
     Rehearsals = new List <TalkRehearsal>();
 }
Exemplo n.º 3
0
 /// <exception cref="Domain.Contract.Exceptions.CommunityNotFoundException" />
 /// <exception cref="Domain.Contract.Exceptions.TalkNotFoundException" />
 public TalkDraft GetEntity(TalkKey id)
 {
     throw new System.NotImplementedException();
 }
Exemplo n.º 4
0
 /// <exception cref="Domain.Contract.Exceptions.CommunityNotFoundException" />
 /// <exception cref="Domain.Contract.Exceptions.TalkNotFoundException" />
 /// <exception cref="Domain.Contract.Exceptions.SpeakerNotFoundException" />
 public void RemoveSpeaker(TalkKey key, string speakerId)
 {
     throw new System.NotImplementedException();
 }
Exemplo n.º 5
0
 /// <exception cref="Domain.Contract.Exceptions.CommunityNotFoundException" />
 /// <exception cref="Domain.Contract.Exceptions.TalkNotFoundException" />
 public void Delete(TalkKey id)
 {
     throw new System.NotImplementedException();
 }
 public TalkRehearsalKey(TalkKey talkDraftKey, string id)
 {
     TalkKey = talkDraftKey ?? throw new ArgumentNullException(nameof(talkDraftKey));
     Id      = id ?? throw new ArgumentNullException(nameof(id));
 }
Exemplo n.º 7
0
 /// <exception cref="Domain.Contract.Exceptions.CommunityNotFoundException" />
 /// <exception cref="Domain.Contract.Exceptions.TalkNotFoundException" />
 /// <exception cref="Domain.Contract.Exceptions.SpeakerNotFoundException" />
 public EntityReference AddSpeaker(TalkKey key, string speakerId)
 {
     throw new System.NotImplementedException();
 }
Exemplo n.º 8
0
 public TalkRehearsal AddRehearsal(TalkKey key, string comments, DateTimeOffset time)
 {
     return(_talkRehearsalRepository.Add(key, comments, time));
 }
Exemplo n.º 9
0
 public void UpdateRehearsal(TalkKey key, TalkRehearsal rehearsal)
 {
     _talkRehearsalRepository.Update(rehearsal);
 }
Exemplo n.º 10
0
 public void RemoveSpeaker(TalkKey key, string speakerId)
 {
     _talkDraftRepository.RemoveSpeaker(key, speakerId);
 }
Exemplo n.º 11
0
 public SpeakerReference AddSpeaker(TalkKey key, string speakerDraftId)
 {
     return(_talkDraftRepository.AddSpeaker(key, speakerDraftId));
 }
Exemplo n.º 12
0
 public void DeleteTalkDraft(TalkKey key)
 {
     _talkDraftRepository.Delete(key);
 }
Exemplo n.º 13
0
 public TalkDraft GetTalkDraft(TalkKey key)
 {
     return(_talkDraftRepository.GetEntity(key));
 }
 /// <exception cref="Domain.Contract.Exceptions.CommunityNotFoundException" />
 /// <exception cref="Domain.Contract.Exceptions.TalkNotFoundException" />
 /// <exception cref="Domain.Contract.Exceptions.SpeakerNotFoundException" />
 public TalkRehearsal Add(TalkKey key, string comments, DateTimeOffset time)
 {
     throw new NotImplementedException();
 }