public void Setup()
 {
     _mockPhotoRepository = Substitute.For <IPhotoRepository>();
     _mockAlbumRepository = Substitute.For <IAlbumRepository>();
     _expressionFactory   = Substitute.For <IPhotoAlbumExpressionFactory>();
     _service             = new PhotoAlbumService(_mockPhotoRepository, _mockAlbumRepository, _expressionFactory);
 }
 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
 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;
 }
 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;
 static PhotoManagerService()
 {
     instance = new PhotoAlbumService();
 }
예제 #11
0
 public PhotoAlbumController(IPhotoAlbumService photoAlbumService)
 {
     _photoAlbumService = photoAlbumService ?? new PhotoAlbumService();
 }
        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;
 }
 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;
 }