/// <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;
 }
 /// <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;
 }
예제 #3
0
        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));
        }
예제 #4
0
 public ArmorBuilder(IArmorRepository armorRepository)
 {
     _armorRepository = armorRepository;
 }