コード例 #1
0
 public void Setup()
 {
     _mockPhotoRepository = Substitute.For <IPhotoRepository>();
     _mockAlbumRepository = Substitute.For <IAlbumRepository>();
     _expressionFactory   = Substitute.For <IPhotoAlbumExpressionFactory>();
     _service             = new PhotoAlbumService(_mockPhotoRepository, _mockAlbumRepository, _expressionFactory);
 }
コード例 #2
0
 public PhotoAlbumController(
     IPhotoService photoService,
     IPhotoAlbumService photoAlbumService,
     UserManager <User> userManager)
 {
     this.photoService      = photoService;
     this.photoAlbumService = photoAlbumService;
     this.userManager       = userManager;
 }
コード例 #3
0
 public PhotoController(
     IWebHostEnvironment hostingEnvironment,
     UserManager <User> userManager,
     ILicenseService licenseService,
     IPhotoService photoService,
     IPhotoAlbumService photoAlbumService,
     IFavoritesService favoritesService)
 {
     this.hostingEnvironment = hostingEnvironment;
     this.userManager        = userManager;
     this.licenseService     = licenseService;
     this.photoService       = photoService;
     this.photoAlbumService  = photoAlbumService;
     this.favoritesService   = favoritesService;
 }
コード例 #4
0
 public HAVProfileService(IValidationDictionary aValidationDictionary, 
                          IUserRetrievalService<User> aUserRetrievalService, 
                          IFriendService<User, Friend> aFriendService, 
                          IPhotoAlbumService<User, PhotoAlbum, Photo, Friend> aPhotoAlbumService, 
                          IHAVProfileRepository aRepository,
                          IBoardRepository<User, Board, BoardReply> aBoardRepository,
                          IProfileQuestionService aProfileQuestionService)
 {
     theValidationDictionary = aValidationDictionary;
     theUserRetrievalService = aUserRetrievalService;
     theFriendService = aFriendService;
     theRepository = aRepository;
     theBoardRepository = aBoardRepository;
     thePhotoAlbumService = aPhotoAlbumService;
     theProfileQuestionService = aProfileQuestionService;
 }
コード例 #5
0
 public CourseController(
     IDateTimeRepository datetimeRepository,
     IRepository2 <Course> courseRepository,
     IRepository2 <PhotoAlbum> photoAlbumRepository,
     IRepository <CourseCategory> courseCategoryRepository,
     ICourseService courseService,
     ICurriculumRepository curriculumRepository,
     IStudentCourseRepository studentCourseRepository,
     IRepository <StudentScore> studentScoreRepository,
     IConfigurationRepository configurationRepository,
     IPhotoAlbumService photoAlbumService,
     IRepository <Photo> photoRepository,
     ICurriculumService curriculumService,
     IStudentCourseService studentCourseService,
     IStudentScoreService studentScoreService,
     IBannerService bannerService,
     IRepository <Banner> bannerRepository,
     IRepository <Handout> handoutRepository,
     IHandoutService handoutService)
 {
     this._datetimeRepository       = datetimeRepository;
     this._courseRepository         = courseRepository;
     this._photoAlbumRepository     = photoAlbumRepository;
     this._courseCategoryRepository = courseCategoryRepository;
     this._courseService            = courseService;
     this._curriculumRepository     = curriculumRepository;
     this._studentCourseRepository  = studentCourseRepository;
     this._studentScoreRepository   = studentScoreRepository;
     this._configurationRepository  = configurationRepository;
     this._photoAlbumService        = photoAlbumService;
     this._photoRepository          = photoRepository;
     this._curriculumService        = curriculumService;
     this._studentCourseService     = studentCourseService;
     this._studentScoreService      = studentScoreService;
     this._bannerService            = bannerService;
     this._bannerRepository         = bannerRepository;
     this._handoutRepository        = handoutRepository;
     this._handoutService           = handoutService;
 }
コード例 #6
0
ファイル: SharedController.cs プロジェクト: k12club/swu
 public SharedController(
     IEmailSender emailSender,
     IRepository <Photo> photoRepository,
     IRepository2 <PhotoAlbum> photoAlbumRepository,
     IDateTimeRepository datetimeRepository,
     IConfigurationRepository configRepository,
     IPhotoAlbumService photoAlbumService,
     IRepository <Banner> bannerRepository,
     IBannerService bannerService,
     IAlumniService alumniService,
     IRepository <Alumni> alumniRepository)
 {
     this._emailSender          = emailSender;
     this._photoRepository      = photoRepository;
     this._photoAlbumRepository = photoAlbumRepository;
     this._datetimeRepository   = datetimeRepository;
     this._configRepository     = configRepository;
     this._photoAlbumService    = photoAlbumService;
     this._bannerRepository     = bannerRepository;
     this._bannerService        = bannerService;
     this._alumniService        = alumniService;
     this._alumniRepository     = alumniRepository;
 }
コード例 #7
0
 public void SetUp()
 {
     _photoAlbumRepoMock = new Mock <IPhotoAlbumRepo>();
     _service            = new PhotoAlbumService(_photoAlbumRepoMock.Object);
 }
コード例 #8
0
 internal PhotoAlbumController(IPhotoAlbumService photoAlbumService)
 {
     _photoAlbumService = photoAlbumService;
 }
コード例 #9
0
 public PhotoAlbumsController(IPhotoAlbumService photoAlbumService)
 => _photoAlbumService = photoAlbumService;
コード例 #10
0
 static PhotoManagerService()
 {
     instance = new PhotoAlbumService();
 }
コード例 #11
0
 public PhotoAlbumController(IPhotoAlbumService photoAlbumService)
 {
     _photoAlbumService = photoAlbumService ?? new PhotoAlbumService();
 }
コード例 #12
0
        public PhotoAlbumControllerTests()
        {
            _mockPhotoAlbumService = Substitute.For <IPhotoAlbumService>();

            _subject = new PhotoAlbumController(_mockPhotoAlbumService);
        }
コード例 #13
0
 public PhotoAppRunner(TextWriter textWriter, IValidationService validationServiceParam, IPhotoAlbumService photoAlbumServiceParam)
 {
     output            = textWriter;
     validationService = validationServiceParam;
     photoAlbumService = photoAlbumServiceParam;
 }
コード例 #14
0
 static PhotoManagerService()
 {
     instance = new PhotoAlbumService();
 }
コード例 #15
0
 public AlbumController(IPhotoAlbumService service, IOptions <ApiConfig> config)
 {
     _service   = service;
     _apiConfig = config;
 }
コード例 #16
0
 public PhotoAlbumController(IPhotoAlbumService photoAlbumService)
 {
     _photoAlbumService = photoAlbumService;
 }
コード例 #17
0
 public PhotoAlbumController()
 {
     _photoAlbumService = new PhotoAlbumService();
 }
コード例 #18
0
 public AlbumsController(IPhotoAlbumService photoAlbumService)
 {
     _photoAlbumService = photoAlbumService ?? throw new ArgumentNullException(nameof(photoAlbumService));
 }
コード例 #19
0
 public PhotoAlbumController(IPhotoAlbumService PhotoAlbumService)
 {
     this.PhotoAlbumService = PhotoAlbumService;
 }
コード例 #20
0
 public PhotoAlbumController(IPhotoAlbumService photoAlbumService, IUserService userService, IImageService imageService)
 {
     _photoAlbumService = photoAlbumService;
     _userService       = userService;
     _imageService      = imageService;
 }
コード例 #21
0
 public PhotoController()
 {
     postService  = new PhotoPostService();
     albumService = new PhotoAlbumService();
 }
コード例 #22
0
 public PhotoAlbumController(IPhotoAlbumService photoAlbumService)
 {
     //_photoAlbumService = new PhotoAlbumService();
     _photoAlbumService = photoAlbumService;
 }
コード例 #23
0
 public PhotoAlbumController(IPhotoAlbumService photoAlbumService, IUserService userService, IImageService imageService)
 {
     _photoAlbumService = photoAlbumService;
     _userService = userService;
     _imageService = imageService;
 }