示例#1
0
 public void Reject()
 {
     if (Id == null)
     {
         throw new Exception("Offer does not have Id");
     }
     OfferReply = new OfferDenial {
         RepliedOn = DateTime.UtcNow
     };
     EventBus.Instance.Publish(GetType(), Id, new Rejected {
         Offer = this
     });
 }
示例#2
0
 public void Reject()
 {
     if (Id == null) throw new Exception("Offer does not have Id");
     OfferReply = new OfferDenial{ RepliedOn = DateTime.UtcNow };
     EventBus.Instance.Publish(GetType(), Id, new Rejected { Offer = this });
 }
示例#3
0
 public void Accept()
 {
     if (Id == null) throw new Exception("Offer does not have Id");
     OfferReply = new OfferAcceptance{ RepliedOn = DateTime.UtcNow };
     EventBus.Instance.PublishAsync(GetType(), Id, new Accepted { Offer = this });
 }