public void Setup() { this.dbContext = Substitute.For <IPipeBandGamesContext>(); this.service = new ContestService(dbContext); }
public ContestService(IPipeBandGamesContext dbContext) { this.dbContext = dbContext; }