public CalculatorAppContext(ODSContext oDSContext,
                             ApiMemoryCache memoryCache,
                             IHttpContextAccessor contextAccessor,
                             IOptions <AppConfiguration> appConfiguration,
                             IStudentDataRepository dataRepository,
                             IGradingScaleRepository gradingScaleRepository)
 {
     MemoryCache            = memoryCache.Cache;
     ODSContext             = oDSContext;
     UserContext            = contextAccessor;
     AppConfiguration       = appConfiguration;
     StudentDataRepository  = dataRepository;
     GradingScaleRepository = gradingScaleRepository;
 }
Exemplo n.º 2
0
 public HomeController() : base()
 {
     this.StudentDataRepository = new StudentDataRepository();
 }
 public StudentDataRepositoryTest()
 {
     _studentDataRepository = A.Fake <IStudentDataRepository>();
     _studentData           = new Student_Services.StudentData(_studentDataRepository);
 }
Exemplo n.º 4
0
 public StudentData(IStudentDataRepository studentDataRepository)
 {
     _studentDataRepository = studentDataRepository;
 }