public AccountController(UserManager<Trainer> userManager)
        {
            this.UserManager = userManager;

            var dbCtx = new DatabaseContextFactory().Create();
            this._sTraining = new TrainerService(dbCtx);
        }
        public void Initialize()
        {
            // Hook up fake data to context.
            this._dbCtx = new FakeTrainingTrackerEntities();

            // Add some fake data needed for these tests.
            this.createFakeData();

            // Create service
            this._sTraining = new Domain.Service.TrainerService(_dbCtx);
        }
 public TrainingController()
 {
     var dbCtx = new DatabaseContextFactory().Create();
     _sTraining = new TrainerService(dbCtx);
 }