예제 #1
0
 public Dragon(string id, int hp, int reward, IHendler logger)
 {
     this.id     = id;
     this.hp     = hp;
     this.reward = reward;
     this.logger = logger;
 }
예제 #2
0
        public ImportFileApp(IHendler <ImportFileCommand> importFileHendler,
                             IFileReadService fileReadService, IConfigurationRoot configuration)
        {
            this._importFileHendler = importFileHendler;
            this._fileReadService   = fileReadService;

            string pathUser = GetUserHome;

            _dirIn  = $"{pathUser}{configuration["ImportDirectoryInput"]}";
            _dirOut = $"{pathUser}{configuration["ImportDirectoryOutput"]}";

            this._directoryReadService = new DirectoryReadService(_dirIn);
        }
예제 #3
0
 public Warrior(string id, int damage, IHendler logger) : base(id, damage, logger)
 {
 }
예제 #4
0
 public AbstractHero(string id, int damage, IHendler logger)
 {
     this.id     = id;
     this.damage = damage;
     this.logger = logger;
 }
예제 #5
0
 public void SetSuccessor(IHendler handler)
 {
     this.successor = successor;
 }