private VoteContextDbApp GetContext(string dbName) { var options = new DbContextOptionsBuilder <VoteContextDbApp>() .UseInMemoryDatabase(databaseName: dbName) .Options; var context = new VoteContextDbApp(options); return(context); }
public VotingServices(VoteContextDbApp voteContext) { this.voteContext = voteContext; }