public CourseAdminFieldsService( ICourseAdminFieldsDataService courseAdminFieldsDataService, ILogger <CourseAdminFieldsService> logger ) { this.courseAdminFieldsDataService = courseAdminFieldsDataService; this.logger = logger; }
public AdminFieldsController( ICourseAdminFieldsService courseAdminFieldsService, ICourseAdminFieldsDataService courseAdminFieldsDataService ) { this.courseAdminFieldsService = courseAdminFieldsService; this.courseAdminFieldsDataService = courseAdminFieldsDataService; }
public void Setup() { courseAdminFieldsDataService = A.Fake <ICourseAdminFieldsDataService>(); logger = A.Fake <ILogger <CourseAdminFieldsService> >(); courseAdminFieldsService = new CourseAdminFieldsService( courseAdminFieldsDataService, logger ); }
public AdminFieldsController( ICourseAdminFieldsService courseAdminFieldsService, ICourseAdminFieldsDataService courseAdminFieldsDataService, IMultiPageFormService multiPageFormService ) { this.courseAdminFieldsService = courseAdminFieldsService; this.courseAdminFieldsDataService = courseAdminFieldsDataService; this.multiPageFormService = multiPageFormService; }
public void Setup() { courseAdminFieldsDataService = A.Fake <ICourseAdminFieldsDataService>(); courseAdminFieldsService = A.Fake <ICourseAdminFieldsService>(); multiPageFormService = A.Fake <IMultiPageFormService>(); courseService = A.Fake <ICourseService>(); controller = new AdminFieldsController( courseAdminFieldsService, courseAdminFieldsDataService, multiPageFormService ) .WithDefaultContext() .WithMockUser(true, 101) .WithMockTempData(); }
public void Setup() { var connection = ServiceTestHelper.GetDatabaseConnection(); courseAdminFieldsDataService = new CourseAdminFieldsDataService(connection); }