Ejemplo n.º 1
0
 public HomeViewModel(IMessageService inputBoxService, INavigationService navigationService, IGradeBookRepository gradeBookRepository) : base(navigationService)
 {
     _inputBoxService        = inputBoxService;
     _navigationService      = navigationService;
     _gradeBookRepository    = gradeBookRepository;
     CreateSubmissionCommand = new DelegateCommandAsync(CreateSubmission);
     NewProjectCommand       = new DelegateCommandAsync(NewProject);
     SubmissionsCommand      = new DelegateCommandAsync(Submissions);
 }
Ejemplo n.º 2
0
 public ProjectViewModel(IVisualStudioService visualStudioService,
                         IConsoleAppGrader grader, INavigationService navigationService, IGradeBookRepository gradeBookRepository, IMessageService messageService) : base(navigationService)
 {
     Cases = new ObservableCollection <IGradeCase>();
     _visualStudioService = visualStudioService;
     _grader              = grader;
     _navigationService   = navigationService;
     _gradeBookRepository = gradeBookRepository;
     _messageService      = messageService;
     CodeProject          = new CodeProject {
         CsvCases = "", CsvExpectedOutput = "Hello World!"
     };
     TestCommand   = new DelegateCommandAsync(Test);
     SubmitCommand = new DelegateCommandAsync(Submit);
     Submission    = new Submission();
 }
 public ProjectsController(IGradeBookRepository repository)
 {
     _repository = repository;
 }
 public SubmissionsController(IGradeBookRepository gradeBookRepository, IPlagiarismService plagiarismService)
 {
     _gradeBookRepository = gradeBookRepository;
     _plagiarismService   = plagiarismService;
 }
Ejemplo n.º 5
0
 public GradeBookController(ITeacherRepository teacherRepository, IRosterRepository rosterRepository, IGradeBookRepository gradeBookRepository)
 {
     _teacherRepository   = teacherRepository;
     _rosterRepository    = rosterRepository;
     _gradeBookRepository = gradeBookRepository;
 }
Ejemplo n.º 6
0
 public GradeBookController(ITeacherRepository teacherRepository, IRosterRepository rosterRepository, IGradeBookRepository gradeBookRepository)
 {
     _teacherRepository = teacherRepository;
     _rosterRepository = rosterRepository;
     _gradeBookRepository = gradeBookRepository;
 }
 public PlagiarismService(IGradeBookRepository repository)
 {
     _repository = repository;
 }