Exemple #1
0
        public void SetUp()
        {
            courseDelegatesService = A.Fake <ICourseDelegatesService>();

            controller = new CourseDelegatesController(courseDelegatesService).WithDefaultContext()
                         .WithMockUser(true, UserCentreId);
        }
        public void Setup()
        {
            courseAdminFieldsService = A.Fake <ICourseAdminFieldsService>();
            courseDataService        = A.Fake <ICourseDataService>();

            courseDelegatesService = new CourseDelegatesService(
                courseAdminFieldsService,
                courseDataService
                );
        }
 public CourseDelegatesController(
     ICourseAdminFieldsService courseAdminFieldsService,
     ICourseDelegatesService courseDelegatesService,
     ICourseDelegatesDownloadFileService courseDelegatesDownloadFileService,
     ISearchSortFilterPaginateService searchSortFilterPaginateService
     )
 {
     this.courseAdminFieldsService           = courseAdminFieldsService;
     this.courseDelegatesService             = courseDelegatesService;
     this.courseDelegatesDownloadFileService = courseDelegatesDownloadFileService;
     this.searchSortFilterPaginateService    = searchSortFilterPaginateService;
 }
Exemple #4
0
        public void SetUp()
        {
            courseAdminFieldsService           = A.Fake <ICourseAdminFieldsService>();
            courseDelegatesService             = A.Fake <ICourseDelegatesService>();
            courseDelegatesDownloadFileService = A.Fake <ICourseDelegatesDownloadFileService>();
            searchSortFilterPaginateService    = A.Fake <ISearchSortFilterPaginateService>();

            controller = new CourseDelegatesController(
                courseAdminFieldsService,
                courseDelegatesService,
                courseDelegatesDownloadFileService,
                searchSortFilterPaginateService
                )
                         .WithDefaultContext()
                         .WithMockUser(true, UserCentreId);
        }
Exemple #5
0
 public CourseDelegatesController(
     ICourseDelegatesService courseDelegatesService
     )
 {
     this.courseDelegatesService = courseDelegatesService;
 }