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); }
public ImageDataController(IProductRepository pRep, IPhotoGallery gRep, IPostRepository postRep) { _pRep = pRep; _gRep = gRep; _postRep = postRep; }
public WidgetController(IPhotoGallery gRepo, IProductRepository pRepository) { _grep = gRepo; _prep = pRepository; }
internal MainWindowModel(IPhotoGallery photoGallery) { _photoGallery = photoGallery; _photos = new ObservableCollection <PhotoImage>(); }
internal MainViewModel(IPhotoGallery photoGallery) { _photoGallery = photoGallery; _photos = new ObservableCollection<PhotoImage>(); }
public PhotoGalleryController(IPhotoGallery gRepo) { _gRepo = gRepo; }