Ejemplo n.º 1
0
        public void Apply(NewRiskItemMapped @event)
        {
            if (@event.ProductLine != ProductLine || @event.RiskSectionId != RiskSectionId)
            {
                return;
            }

            Items[@event.ItemName] = new SectionItem(Id, @event.ProductLine, @event.RiskSectionId, @event.RiskItemId);
        }
 public void When(NewRiskItemMapped message)
 {
     Then(new CreateRiskTableColumn(State.ProductLine, message.SectionName, message.ItemName));
 }