/// <summary> /// Initializes a new instance of the <see cref="ArmorController" /> class. /// </summary> /// <param name="armorRepository">The armor repository.</param> /// <param name="armorTypeRepository">The armor type repository.</param> /// <param name="armorAvailabilityRepository">The armor availability repository.</param> public ArmorController( IArmorRepository armorRepository, IArmorTypeRepository armorTypeRepository, IArmorAvailabilityRepository armorAvailabilityRepository) { ArmorRepository = armorRepository; ArmorTypeRepository = armorTypeRepository; ArmorAvailabilityRepository = armorAvailabilityRepository; }
public ConstraintViewModel(IArmorRepository armorRepository, IEventAggregator eventAggregator) { _eventAggregator = eventAggregator; SearchCommand = new DelegateCommand(SearchExecute); var delegateCommand = new DelegateCommand <IConstraint>(DeleteConstraint); var values = Enum.GetValues <SkillName>(); foreach (var value in values) { Constraints.Add(new SkillConstraintViewModel(value, delegateCommand)); } Constraints.Add(new RarityConstraintViewModel(delegateCommand)); }
public ArmorBuilder(IArmorRepository armorRepository) { _armorRepository = armorRepository; }