public void Apply(NewRiskSectionMapped @event) { if (@event.ProductLine != ProductLine) { return; } Sections[@event.SectionName] = new Section(Id, @event.RiskSectionId, @event.ProductLine); }
public void When(NewRiskSectionMapped message) { Then(new CreateRiskTable(message.ProductLine, message.SectionName)); }