public CreatePollCommand(IUIFactory uif, IPollFactory pollFactory, VotingRepository repository) { //if (name is null) //{ // Title = this.GetType().Name; //} Title = GetType().Name; factory = uif; this.pollFactory = pollFactory; repo = repository; }
public VotingController(VotingRepository voting, StateCache state) { Voting = voting; State = state; }
public ShowVotingCommand(string commandName, IUIFactory factory, VotingRepository repo) { Title = commandName; this.factory = factory; votings = repo; }
public VotingService(VotingRepository votingRepository = null) { _votingRepository = votingRepository ?? new VotingRepository(); }