Exemplo n.º 1
0
        public string HandleRequest(SoftwareRequest request)
        {
            if (this.CanHandle(request))
            {
              return this.DevelopSoftware(request);
            }

            if (this.Successor != null)
            {
               return this.Successor.HandleRequest(request);
            }

            return "This software cannot be developed by our team";
        }
Exemplo n.º 2
0
 protected override string DevelopSoftware(SoftwareRequest request)
 {
     return "Software Created by the Regular Developer Team!";
 }
Exemplo n.º 3
0
 protected override bool CanHandle(SoftwareRequest request)
 {
     return request.Difficulty <= MaximumDifficultyToHandle;
 }
Exemplo n.º 4
0
 protected abstract string DevelopSoftware(SoftwareRequest request);
Exemplo n.º 5
0
 protected abstract bool CanHandle(SoftwareRequest request);