Example #1
0
        public void SetUp()
        {
            _context     = new Mock <IApplicationDbContext>();
            _predictions = new Mock <DbSet <Prediction> >();
//            _context.Setup(p => p.Predictions).Returns(_predictions);

            _sut = new PredictionConverter(_validator.Object);
        }
Example #2
0
 public EditModel(IPredictionData PredictionData,
                  IPredictionConverter predictionConverter,
                  ApplicationDbContext context,
                  IAuthorizationService authorizationService,
                  UserManager <ApplicationUser> userManager) : base(context, authorizationService, userManager)
 {
     _predictionData      = PredictionData;
     _predictionConverter = predictionConverter;
 }
Example #3
0
 public MyPredictionsModel(IPredictionData predictionData, IPredictionConverter predictionConverter,
                           IGameData gameData, IUserData userData,
                           ApplicationDbContext context,
                           IAuthorizationService authorizationService,
                           UserManager <ApplicationUser> userManager,
                           ILogger <MyPredictionsModel> logger)
     : base(context, authorizationService, userManager)
 {
     _predictionData      = predictionData;
     _gameData            = gameData;
     _userData            = userData;
     _logger              = logger;
     _predictionConverter = predictionConverter;
 }
Example #4
0
 public IndexModel(IPredictionData predictiondata, IPredictionConverter converter)
 {
     _predictiondata = predictiondata;
     _converter      = converter;
 }
Example #5
0
 public DetailsModel(IPredictionData PredictionData, IPredictionConverter converter)
 {
     _predictionData = PredictionData;
     _converter      = converter;
 }