public ReportControllerTests() { _context = new WorkoutTrackerEntities(); unitOfWork = new UnitOfWork(_context); workoutRepository = new WorkoutCollectionRepository(_context); workoutService = new WorkoutCollectionService(unitOfWork, workoutRepository); userRepository = new UserRepository(_context); _userService = new UserService(unitOfWork, userRepository); _logManager = new LogManager(); }
public WorkoutCollectionServiceTests() { _context = new WorkoutTrackerEntities(); unitOfWork = new UnitOfWork(_context); workoutCollectionRepository = new WorkoutCollectionRepository(_context); workoutCategoryRepository = new WorkoutCategoryRepository(_context); userRepository = new UserRepository(_context); workoutCollectionService = new WorkoutCollectionService(unitOfWork, workoutCollectionRepository); workoutCategoryService = new WorkoutCategoryService(unitOfWork, workoutCategoryRepository); userService = new UserService(unitOfWork, userRepository); }
public ReportController(IWorkoutCollectionService workoutService, ILogManager logManager) { _workoutService = workoutService; _logManager = logManager; }
public WorkoutTrackerController(IWorkoutCollectionService workoutService, IWorkoutCategoryService workoutCategoryService, ILogManager logManager) { _workoutService = workoutService; _workoutCategoryService = workoutCategoryService; _logManager = logManager; }