public override void DoWork(Architecture architecture) { foreach (Military military in architecture.Militaries) { if ((military.Kind.ID == this.kind) && (military.InjuryQuantity == 0)) { architecture.RecruitmentMilitary(military, this.rate); } } }