public VotingTests() { _ctx = DbContextFactory.Create(Guid.NewGuid().ToString()); _persistance = new VotingSystemPersistance(_ctx); _votingInteractor = new VotingInteractor(_persistance); _pollInteractor = new VotingPollInteractor(new VotingPollFactory(), _persistance); }
public IActionResult OnPost([FromServices] VotingPollInteractor votingPollInteractor) { votingPollInteractor.CreateVotingPoll(Form); return(RedirectToPage("/Index")); }
public VotingPollInteractorTests() { _interactor = new VotingPollInteractor(_mockFactory.Object, _mockPersistance.Object); }