public VotesServiceTests() { this.db = BaseServiceTests.CreateContext(); var votesRepository = new EfRepository <Vote>(this.db); this.service = new VotesService(votesRepository); }
public UsersServiceTests() { this.db = BaseServiceTests.CreateContext(); var commentsRepository = new EfDeletableEntityRepository <ApplicationUser>(this.db); this.service = new UsersService(commentsRepository); }
public CommentServiceTests() { this.db = BaseServiceTests.CreateContext(); this.mockService = new Mock <ICommentsService>(); var commentsRepository = new EfDeletableEntityRepository <Comment>(this.db); this.service = new CommentsService(commentsRepository); }
public ExercisesServiceTest() { this.db = BaseServiceTests.CreateContext(); this.mockService = new Mock <IExercisesService>(); var exercisesRepository = new EfDeletableEntityRepository <Exercise>(this.db); this.service = new ExercisesService(exercisesRepository); }
public DietsServiceTests() { this.db = BaseServiceTests.CreateContext(); this.mockService = new Mock <IDietsService>(); var dietsRepository = new EfDeletableEntityRepository <Diet>(this.db); var userRepository = new EfDeletableEntityRepository <ApplicationUser>(this.db); this.service = new DietsService(dietsRepository, userRepository); }