public static IVotingStrategy GetVotingStrategy(VotingStrategyType votingStrategy)
 {
     switch (votingStrategy)
     {
         case VotingStrategyType.Open:
             return new OpenVotingStrategy();
         case VotingStrategyType.Closed:
             return new ClosedVotingStrategy();
         default:
             throw new InvalidOperationException("Strategy not found");
     }
 }
        public static IVotingStrategy GetVotingStrategy(VotingStrategyType votingStrategy)
        {
            switch (votingStrategy)
            {
            case VotingStrategyType.Open:
                return(new OpenVotingStrategy());

            case VotingStrategyType.Closed:
                return(new ClosedVotingStrategy());

            default:
                throw new InvalidOperationException("Strategy not found");
            }
        }