public void SetUp() { _context = new Mock <IApplicationDbContext>(); _predictions = new Mock <DbSet <Prediction> >(); // _context.Setup(p => p.Predictions).Returns(_predictions); _sut = new PredictionConverter(_validator.Object); }
public EditModel(IPredictionData PredictionData, IPredictionConverter predictionConverter, ApplicationDbContext context, IAuthorizationService authorizationService, UserManager <ApplicationUser> userManager) : base(context, authorizationService, userManager) { _predictionData = PredictionData; _predictionConverter = predictionConverter; }
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; }
public IndexModel(IPredictionData predictiondata, IPredictionConverter converter) { _predictiondata = predictiondata; _converter = converter; }
public DetailsModel(IPredictionData PredictionData, IPredictionConverter converter) { _predictionData = PredictionData; _converter = converter; }