/// <summary> /// Bind this Summary to a Case. /// </summary> public void BindToCase(Case.Case targetCase) { // Bind to Case Case = targetCase; CaseId = targetCase.Id; targetCase.BindSummary(this); }
protected Summary(Guid identityId, Guid agencyId, Guid id, ModuleType moduleType, string number, Case.Case parentCase) : base(identityId, agencyId, id, moduleType, DataEntryAggregateType.Summary) { if (string.IsNullOrWhiteSpace(number)) { throw new Exception("A Summary cannot exist without a Number."); } Number = number; if (parentCase != null) { BindToCase(parentCase); } }