public void SetUp()
 {
     _helper = Resolve<IPhotoHelper>();
     _serverPath = Directory.GetParent(Directory.GetCurrentDirectory()).Parent.FullName;
     string directoryPath = _serverPath + @"\Resources\dog.jpg";
     _stream = new FileStream(directoryPath,FileMode.Open);
     _testImagePath = _serverPath + "\\TestImages\\";
 }
        public OrganizationController(IOrganizationService organizationService, IMapper mapper, IPhotoHelper photoHelper, IUserProvider userProvider)
        {
            Guard.WhenArgument(organizationService, "organizationService").IsNull().Throw();
            Guard.WhenArgument(mapper, "mapper").IsNull().Throw();
            Guard.WhenArgument(userProvider, "userProvider").IsNull().Throw();
            Guard.WhenArgument(photoHelper, "photoHelper").IsNull().Throw();

            this.organizationService = organizationService;
            this.mapper       = mapper;
            this.userProvider = userProvider;
            this.photoHelper  = photoHelper;
        }
Beispiel #3
0
        public IndividualController(IIndividualService individualService, IMapper mapper, IPhotoHelper photoHelper, IUserProvider userProvider)
        {
            Guard.WhenArgument(individualService, "individualService").IsNull().Throw();
            Guard.WhenArgument(mapper, "mapper").IsNull().Throw();
            Guard.WhenArgument(photoHelper, "photoHelper").IsNull().Throw();
            Guard.WhenArgument(userProvider, "userProvider").IsNull().Throw();

            this.individualService = individualService;
            //this.imageService = imageService;
            this.mapper       = mapper;
            this.photoHelper  = photoHelper;
            this.userProvider = userProvider;
        }
        public EventController(IEventService eventService, IIndividualService individualService, IOrganizationService organizationService, IMapper mapper, IPhotoHelper photoHelper)
        {
            Guard.WhenArgument(individualService, "individualService").IsNull().Throw();
            Guard.WhenArgument(organizationService, "organizationService").IsNull().Throw();
            Guard.WhenArgument(eventService, "eventService").IsNull().Throw();
            Guard.WhenArgument(mapper, "mapper").IsNull().Throw();
            Guard.WhenArgument(photoHelper, "photoHelper").IsNull().Throw();

            this.individualService   = individualService;
            this.organizationService = organizationService;
            this.eventService        = eventService;
            this.mapper      = mapper;
            this.photoHelper = photoHelper;
        }
Beispiel #5
0
        public PhotoUploader(
            IPhotoHelper photoUploadHelper,
            IPhotoService photoService,
            IUploadService <Photo> uploadPhotoService,
            IUserProvider userProvider)
        {
            Guard.WhenArgument(photoUploadHelper, "photoUploadHelper").IsNull().Throw();
            Guard.WhenArgument(photoService, "photoService").IsNull().Throw();
            Guard.WhenArgument(uploadPhotoService, "uploadPhotoService").IsNull().Throw();
            Guard.WhenArgument(userProvider, "userProvider").IsNull().Throw();

            this.photoUploadHelper  = photoUploadHelper;
            this.photoService       = photoService;
            this.uploadPhotoService = uploadPhotoService;
            this.userProvider       = userProvider;
        }
 public PhotoController(IPhotoHelper photoHelper)
 {
     _photoHelper = photoHelper;
 }
Beispiel #7
0
 public CalendarHelper(IPhotoHelper photoHelper)
 {
     _photoHelper = photoHelper;
 }