static void Main(string[] args) { //interface reference capable of holding different Algo Impl. IDeveloperStrategy developerStrategy = null; //work to be assigned List <string> easyFunctionalityToBeImplement = new List <string>() { "Easy Payrolls Work ", "Easy Finance Work ", "Easy Retirement Services Work", "Easy Automation Tests Fr. Work " }; List <string> difficultFunctionalityToBeImplement = new List <string>() { "Difficult Payrolls Work ", "Difficult Finance Work ", "Difficult Retirement Services Work", "Difficult Automation Tests Fr. Work " }; List <string> designfunctionalityToBeImplement = new List <string>() { "Design Payrolls Work ", "Design Finance Work ", "Design Retirement Services Work", "Design Automation Tests Fr. Work " }; //assign easy to Meber tech. StrategyContext strategyContext = new StrategyContext(new MemberTechnical()); developerStrategy = strategyContext.getFunctionalityDeveloper("easy", easyFunctionalityToBeImplement); //Difficult to Sr. Meber tech. //developerStrategy = StrategyContext.getFunctionalityDeveloper(difficultFunctionalityToBeImplement.First(), difficultFunctionalityToBeImplement); //Design to developer lead //developerStrategy = StrategyContext.getFunctionalityDeveloper(designfunctionalityToBeImplement.First(), designfunctionalityToBeImplement); Console.ReadLine(); }
public StrategyContext(IDeveloperStrategy DeveloperStrategy) { this.developerStrategy = DeveloperStrategy; }