Exemple #1
0
 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 WorkoutTrackerController(IWorkoutCollectionService workoutService, IWorkoutCategoryService workoutCategoryService, ILogManager logManager)
 {
     _workoutService         = workoutService;
     _workoutCategoryService = workoutCategoryService;
     _logManager             = logManager;
 }