Esempio n. 1
0
 private void Construct(
     ICoroutineRunner coroutineRunner,
     IPhotoGallery photoGallery,
     IPermissions permissions)
 {
     this.coroutineRunner = coroutineRunner;
     this.photoGallery    = photoGallery;
     this.permissions     = permissions;
 }
        public void SetUp()
        {
            container = new DiContainer();
            container.Bind <CameraCapture>().AsSingle();

            cameraCaptureSystem = Substitute.For <ICameraCaptureSystem>();
            container.Bind <ICameraCaptureSystem>().FromInstance(cameraCaptureSystem);

            database = Substitute.For <IDatabase>();
            container.Bind <IDatabase>().FromInstance(database);

            photoGallery = Substitute.For <IPhotoGallery>();
            container.Bind <IPhotoGallery>().FromInstance(photoGallery);

            permissions = Substitute.For <IPermissions>();
            container.Bind <IPermissions>().FromInstance(permissions);

            container.Inject(this);
        }
Esempio n. 3
0
 public ImageDataController(IProductRepository pRep, IPhotoGallery gRep, IPostRepository postRep)
 {
     _pRep = pRep;
     _gRep = gRep;
     _postRep = postRep;
 }
Esempio n. 4
0
 public WidgetController(IPhotoGallery gRepo, IProductRepository pRepository)
 {
     _grep = gRepo;
     _prep = pRepository;
 }
 internal MainWindowModel(IPhotoGallery photoGallery)
 {
     _photoGallery = photoGallery;
     _photos       = new ObservableCollection <PhotoImage>();
 }
Esempio n. 6
0
 public ImageDataController(IProductRepository pRep, IPhotoGallery gRep, IPostRepository postRep)
 {
     _pRep    = pRep;
     _gRep    = gRep;
     _postRep = postRep;
 }
Esempio n. 7
0
 internal MainViewModel(IPhotoGallery photoGallery)
 {
     _photoGallery = photoGallery;
     _photos = new ObservableCollection<PhotoImage>();
 }
Esempio n. 8
0
 public WidgetController(IPhotoGallery gRepo, IProductRepository pRepository)
 {
     _grep = gRepo;
     _prep = pRepository;
 }
 public PhotoGalleryController(IPhotoGallery gRepo)
 {
     _gRepo = gRepo;
 }
Esempio n. 10
0
 public PhotoGalleryController(IPhotoGallery gRepo)
 {
     _gRepo = gRepo;
 }