Exemple #1
0
 public ItemBasedBehaviour(ItemBasedBehaviourData data,
                           IItemCategoryRepository itemCategoryRepository, IBehaviourRepository behaviourRepository,
                           List <Validator> validators) : base(data, validators)
 {
     this.behaviour        = behaviourRepository.FindOrFail(data.BehaviourId);
     this.requiredCategory = itemCategoryRepository.FindOrFail(data.ItemCategoryId);
 }