public OpinionsController( IOpinionsService opinionsService, UserManager <ApplicationUser> userManager) { this.opinionsService = opinionsService; this.userManager = userManager; }
public OpinionsServiceTests() { this.ads = new List <Ad>(); this.opinions = new List <Opinion>(); this.specialists = new List <Specialist_Details>(); var adsRepository = new EfDeletableEntityRepository <Ad>(this.DbContext); var opinionsRepository = new EfDeletableEntityRepository <Opinion>(this.DbContext); var specialistsRepository = new EfDeletableEntityRepository <Specialist_Details>(this.DbContext); this.service = new OpinionsService(opinionsRepository, adsRepository, specialistsRepository); this.InitializeRepositoriesData(); }