Example #1
0
 public CommandInterpreter(IRepository repository, IBehaviourFactory behaviourFactory,
                           IAttackFactory attackFactory)
 {
     this.repository       = repository;
     this.behaviourFactory = behaviourFactory;
     this.attackFactory    = attackFactory;
 }
 public ProductsMonitorService(IDateTimeNow dateTimeNow)
 {
     _dateTimeNow = dateTimeNow;
     _modelPortfolioRepository = new ModelPortfolioRepository();
     _behaviourFactory         = new BehaviourFactory();
     _productRepository        = new ProductRepository(_modelPortfolioRepository, _behaviourFactory, _dateTimeNow);
     _rebalancerHandler        = new RebalanceHandler(_behaviourFactory);
     _payoutHandler            = new PayoutHandler(_behaviourFactory);
     _monitorFactory           = new MonitorFactory(_dateTimeNow, _rebalancerHandler, _payoutHandler);
     _monitorHandler           = new MonitorHandler(_monitorFactory);
 }
Example #3
0
 public Engine(
     IRenderer renderer,
     IInputController inputController,
     ICommandFactory commandFactory,
     IFieldOfPLay fieldOfPLay,
     IAttackFactory attackFactory,
     IBehaviourFactory behaviourFactory)
 {
     this.renderer = renderer;
     this.inputController = inputController;
     this.CommandFactory = commandFactory;
     this.FieldOfPLay = fieldOfPLay;
     AttackFactory = attackFactory;
     BehaviourFactory = behaviourFactory;
     this.ReportEvents = false;
 }
Example #4
0
 public BehaviourQueue(IBehaviourFactory factory)
 {
     this.factory = factory;
 }
Example #5
0
 public RebalanceHandler(IBehaviourFactory behaviourFactory)
 {
     _behaviourFactory = behaviourFactory;
 }
Example #6
0
 public PayoutHandler(IBehaviourFactory behaviourFactory)
 {
     _behaviourFactory = behaviourFactory;
 }
 public Engine(IInputReader reader, IOutputWriter writer, IBlobFactory blobFactory, IBehaviourFactory behaviourFactory, IAttackFactory attackFactory, ICombatHandler combataHandler)
 {
     this.Reader           = reader;
     this.Writer           = writer;
     this.BlobFactory      = blobFactory;
     this.BehaviourFactory = behaviourFactory;
     this.AttackFactory    = attackFactory;
     this.CombatHandler    = combataHandler;
     this.CommandExecutor  = new CommandExecutor(this);
 }
Example #8
0
 public Parrot(IBehaviourFactory factory)
 {
     _factory = factory;
 }
Example #9
0
 public ProductRepository(IModelPortfolioRepository modelPortfolioRepository, IBehaviourFactory behaviourFactory, IDateTimeNow dateTimeNow)
 {
     _modelPortfolioRepository = modelPortfolioRepository;
     _behaviourFactory         = behaviourFactory;
     _dateTimeNow = dateTimeNow;
 }
Example #10
0
 public Cat(IBehaviourFactory factory)
 {
     _factory = factory;
 }
Example #11
0
 public Canary(IBehaviourFactory factory)
 {
     _factory = factory;
 }
Example #12
0
 public Controller(IDatabase database, IBlobFactory blobFactory, IAttackFactory attackFactory, IBehaviourFactory behaviourFactory)
 {
     this.BehaviourFactory = behaviourFactory;
     this.AttackFactory    = attackFactory;
     this.BlobFactory      = blobFactory;
     this.Database         = database;
 }
Example #13
0
 public Dog(IBehaviourFactory factory)
 {
     _factory = factory;
 }