예제 #1
0
 public UsersController(
     IMapper mapper,
     IUserFactory userFactory,
     IPhotoHandlerService photoHandlerService,
     IPhotoFactory photoFactory,
     IUnitOfWork unitOfWork
     ) : base(unitOfWork, mapper)
 {
     this.userFactory         = userFactory;
     this.photoHandlerService = photoHandlerService;
     this.photoFactory        = photoFactory;
     this.unitOfWork          = unitOfWork;
 }
예제 #2
0
 public PhotosRepository(RiftDataDataContext dataContext, IFlickrInfrastructure flickrInfrastructure, IPhotoFactory photoFactory)
 {
     this.dataContext = dataContext;
     this.flickrInfrastructure = flickrInfrastructure;
     this.photoFactory = photoFactory;
 }