Exemple #1
0
        public WeaponController(ICategoryRepository categoryRepo, IWeaponRepository weaponRepo)
        {
            ViewBag.Heading = "Big Boy Toys!!!";

            _categoryRepo = categoryRepo;
            _weaponRepo   = weaponRepo;
        }
        //IElementService _elementService;

        public EquipmentElementService(IEquipmentElementRepository equipElementRepo, IWeaponRepository weaponRepo, IElementRepository elementRepo) //IElementService elementService)
        {
            _equipElementRepo = equipElementRepo;
            _weaponRepo       = weaponRepo;
            _elementRepo      = elementRepo;
            //_elementService = elementService;
        }
Exemple #3
0
 public Engine(IGemFactory gemFactory, IWeaponFactory weaponFactory, IWeaponRepository weaponRepository, ICommandInterpreter commandInterpreter)
 {
     this.gemFactory         = gemFactory;
     this.weaponFactory      = weaponFactory;
     this.weaponRepository   = weaponRepository;
     this.commandInterpreter = commandInterpreter;
 }
 public CreateWeaponCommandHandler(
     IWeaponRepository weaponRepository,
     IMapper mapper)
 {
     _weaponRepository = weaponRepository;
     _mapper           = mapper;
 }
 public WookieController(IWookieRepository wookieRepository, IWeaponRepository weaponRepository, IConfiguration configuration, IOptions <SecurityItem> options
                         , ILogger <WookieController> logger)
 {
     _repository       = wookieRepository;
     _weaponRepository = weaponRepository;
     _configuration    = configuration;
     _options          = options;
     _logger           = logger;
 }
 public Engine(
     IInputManager inputManager,
     IOutputManager outputManager,
     IWeaponRepository weaponDataBase,
     IWeaponFactory weaponFactory,
     IGemFactory gemFactory)
 {
     this.inputManager   = inputManager;
     this.outputManager  = outputManager;
     this.weaponDataBase = weaponDataBase;
     this.weaponFactory  = weaponFactory;
     this.gemFactory     = gemFactory;
 }
Exemple #7
0
 public CommandInterpreter(
     IWeaponRepository weaponRepository,
     ICommandFactory commandFactory,
     IWeaponFactory weaponFactory,
     IGemFactory gemFactory,
     IOutputWriter outputWriter)
 {
     this.weaponRepository = weaponRepository;
     this.commandFactory   = commandFactory;
     this.weaponFactory    = weaponFactory;
     this.gemFactory       = gemFactory;
     this.outputWriter     = outputWriter;
 }
Exemple #8
0
 public WeaponsController(
     ICreateWeaponHandler createWeaponHandler,
     IUpdateWeaponHandler updateWeaponHandler,
     IWeaponRepository repository,
     IDeleteWeaponHandler deleteWeaponHandler,
     IFilterByNameWeaponHandler filterByNameWeaponHandler,
     IMapper mapper)
 {
     this.createWeaponHandler       = createWeaponHandler ?? throw new ArgumentNullException(nameof(createWeaponHandler));
     this.updateWeaponHandler       = updateWeaponHandler ?? throw new ArgumentNullException(nameof(updateWeaponHandler));
     this.repository                = repository ?? throw new ArgumentNullException(nameof(repository));
     this.deleteWeaponHandler       = deleteWeaponHandler ?? throw new ArgumentNullException(nameof(deleteWeaponHandler));
     this.filterByNameWeaponHandler = filterByNameWeaponHandler ?? throw new ArgumentNullException(nameof(filterByNameWeaponHandler));
     this.mapper = mapper ?? throw new ArgumentNullException(nameof(mapper));
 }
Exemple #9
0
 public AddCommand(IGemFactory gemFactory, IWeaponRepository weapons)
 {
     this.gemFactory = gemFactory;
     this.weapons    = weapons;
 }
 public WeaponsController(IWeaponRepository weaponRepository)
 {
     this.weaponRepository = weaponRepository;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="WeaponController"/> class.
 /// </summary>
 /// <param name="weaponRepository">The weapon repository.</param>
 public WeaponController(IWeaponRepository weaponRepository)
 {
     WeaponRepository = weaponRepository;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="WeaponController"/> class.
 /// </summary>
 /// <param name="weaponRepository">The weapon repository.</param>
 public WeaponController(IWeaponRepository weaponRepository)
 {
     WeaponRepository = weaponRepository;
 }
Exemple #13
0
 public AddCommand(string[] data, IWeaponRepository repository, IGemFactory gemFactory)
     : base(data)
 {
     this.repository = repository;
     this.gemFactory = gemFactory;
 }
 public ShoppingCartController(IWeaponRepository weaponRepository, ShoppingCart shoppingCart)
 {
     _weaponRepository = weaponRepository;
     _shoppingCart     = shoppingCart;
 }
 public PrintCommand(string[] data, IWeaponRepository repository)
     : base(data)
 {
     this.repository = repository;
 }
Exemple #16
0
 public RemoveCommand(IWeaponRepository weapons)
 {
     this.weapons = weapons;
 }
 public CommandInterpreter(IWeaponRepository repository, IWeaponFactory weaponFactory, IGemFactory gemFactory)
 {
     this.repository    = repository;
     this.weaponFactory = weaponFactory;
     this.gemFactory    = gemFactory;
 }
Exemple #18
0
 public PrintCommand(IWeaponRepository weapons)
 {
     this.weapons = weapons;
 }
 public CommandInterpreter(IWeaponRepository repo)
 {
     this.repo = repo;
 }
Exemple #20
0
 public SelfieController(ISelfieRepository selfieRepository, IWeaponRepository weaponRepository)
 {
     _selfieRepository = selfieRepository;
     _weaponRepository = weaponRepository;
 }
 public WookieController(ILogger <WookieController> logger, IWookieRepository repository, IWeaponRepository weaponRepository, IWebHostEnvironment env, IOptions <SecurityItem> options)
 {
     this._repository       = repository;
     this._weaponRepository = weaponRepository;
     this._logger           = logger;
 }
Exemple #22
0
 public CreateWeaponHandler(IWeaponRepository repository, NotificationContext notificationContext, IWeaponMongoRepository mongoRepository)
 {
     this.repository          = repository;
     this.notificationContext = notificationContext;
     this.mongoRepository     = mongoRepository;
 }
Exemple #23
0
 public AddCommand(IWeaponRepository repository, string[] data) : base(repository, data)
 {
 }
Exemple #24
0
 public WeaponManager(IWeaponRepository weaponRepository)
 {
     _repository = weaponRepository;
 }
Exemple #25
0
 public Command(IWeaponRepository repository, string[] data)
 {
     this.repository = repository;
     this.data       = data;
 }
 public END(IList <string> arguments, IWeaponRepository weaponDatabase)
     : base(arguments, weaponDatabase)
 {
 }
Exemple #27
0
 public RemoveCommand(string[] data, IWeaponRepository weaponRepository)
     : base(data)
 {
     this.weaponRepository = weaponRepository;
 }
Exemple #28
0
 public CreateCommand(IWeaponFactory weaponFactory, IWeaponRepository weapons)
 {
     this.weaponFactory = weaponFactory;
     this.weapons       = weapons;
 }
 public CreateCommand(string[] data, IWeaponRepository reposirtory, IWeaponFactory weaponFactory)
     : base(data)
 {
     this.repository    = reposirtory;
     this.weaponFactory = weaponFactory;
 }
Exemple #30
0
 public WeaponsController(IWeaponRepository weaponRepository)
 {
     this.weaponRepository = weaponRepository;
 }
 public CombatDomainServiceImpl(IWeaponRepository repository, IDamageManager manager)
 {
     _repository = repository;
     _manager    = manager;
 }
Exemple #32
0
 public WeaponService(IWeaponRepository repo)
 {
     _repo = repo;
 }