Exemplo n.º 1
0
 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);
 }
Exemplo n.º 3
0
 public ReportController(IWorkoutCollectionService workoutService, ILogManager logManager)
 {
     _workoutService = workoutService;
     _logManager     = logManager;
 }
 public WorkoutTrackerController(IWorkoutCollectionService workoutService, IWorkoutCategoryService workoutCategoryService, ILogManager logManager)
 {
     _workoutService         = workoutService;
     _workoutCategoryService = workoutCategoryService;
     _logManager             = logManager;
 }