예제 #1
0
        public ShellViewModel(
            IMessageBoxManager messageBoxManager,
            IWellDataImporter wellDataImporter,
            IWellProvider wellProvider,
            ITankProvider tankProvider,
            IWindowManager windowManager,
            IFactory <AddWellViewModel> wellViewModelFactory,
            IAutoUpdater autoUpdater)
        {
            _messageBoxManager    = messageBoxManager;
            _wellDataImporter     = wellDataImporter;
            _wellProvider         = wellProvider;
            _tankProvider         = tankProvider;
            _windowManager        = windowManager;
            _wellViewModelFactory = wellViewModelFactory;
            _autoUpdater          = autoUpdater;
            WellItems             = new BindableCollection <WellModel>();
            TankItems             = new BindableCollection <TankModel>();
            MessageQueue          = new SnackbarMessageQueue(TimeSpan.FromSeconds(2))
            {
                IgnoreDuplicate = true
            };

            _propertyObserver = new PropertyObserver <ShellViewModel>(this);

            _propertyObserver.OnChangeOf(x => x.SelectedWell).Do((vm) => LoadTanks(vm.SelectedWell).ConfigureAwait(false));
        }
예제 #2
0
 public UploadTests(IWellDataImporter wellDataImporter,
                    DbContextFixture dbContextFixture,
                    IWellProvider wellProvider,
                    ITankProvider tankProvider)
 {
     _wellDataImporter = wellDataImporter;
     _dbContextFixture = dbContextFixture;
     _wellProvider     = wellProvider;
     _tankProvider     = tankProvider;
 }
예제 #3
0
 public UpdateTankTests(
     DbContextFixture dbContextFixture,
     IWellDataImporter wellDataImporter,
     IWellProvider wellProvider,
     ITankProvider tankProvider)
 {
     _dbContextFixture = dbContextFixture;
     _wellDataImporter = wellDataImporter;
     _wellProvider     = wellProvider;
     _tankProvider     = tankProvider;
 }
예제 #4
0
 public ServiceTests(IWellProvider wellProvider, DbContextFixture dbContextFixture)
 {
     _wellProvider     = wellProvider;
     _dbContextFixture = dbContextFixture;
 }
예제 #5
0
 public AddWellViewModel(IRecieveNotifyOnAdd notify, IWellProvider wellProvider)
 {
     _wellProvider = wellProvider;
     _notify       = notify;
 }