public WorkoutCollectionRepositoryTests() { _context = new WorkoutTrackerEntities(); wcRepository = new WorkoutCollectionRepository(_context); workoutCategoryRepository = new WorkoutCategoryRepository(_context); userRepository = new UserRepository(_context); }
public WorkoutCategoryServiceTests() { _context = new WorkoutTrackerEntities(); unitOfWork = new UnitOfWork(_context); workoutCategoryRepository = new WorkoutCategoryRepository(_context); workoutCategoryService = new WorkoutCategoryService(unitOfWork, workoutCategoryRepository); }
public WorkoutTrackerControllerTests() { _context = new WorkoutTrackerEntities(); unitOfWork = new UnitOfWork(_context); workoutRepository = new WorkoutCollectionRepository(_context); workoutService = new WorkoutCollectionService(unitOfWork, workoutRepository); categoryRepository = new WorkoutCategoryRepository(_context); categoryService = new WorkoutCategoryService(unitOfWork, categoryRepository); userRepository = new UserRepository(_context); _userService = new UserService(unitOfWork, userRepository); _logManager = new LogManager(); }
public WorkoutCategoryRepositoryTests() { _context = new WorkoutTrackerEntities(); workoutCategoryRepository = new WorkoutCategoryRepository(_context); }
public WorkoutCategoryService(IUnitOfWork unitOfWork, IWorkoutCategoryRepository workoutCategoryRepository) : base(unitOfWork, workoutCategoryRepository) { this.workoutCategoryRepository = workoutCategoryRepository; this.unitOfWork = unitOfWork; }