public RecordsReportViewModel() { try { _logger.Info("Inside Records viewer view model construtor"); if (!ViewModelBase.IsInDesignModeStatic) { Alpharepo = new AlphaRepository(); Betarepo = new BetaRepository(); Gammarepo = new GammaRepository(); RecRepo = new RecordRepository(); StatusRepo = new StatusRepository(); DeltaRepo = new DeltaRepository(); ThetaRepo = new ThetaRepository(); SaveRecord = new RelayCommand(OnSave, canSave); SearchRecord = new RelayCommand(onSearch, canSearch); ExportToPDF = new RelayCommand(onExportToPdf, canExport); DeleteRecord = new RelayCommand(onDelete, canDelete); PdfFilterZeus = true; PdfFilterStatus = true; } } catch (Exception e) { _logger.Error("Some error have occured in RecordsReportViewModel, stacktrace=" + e.StackTrace); _logger.Error("RecordsReportViewModel error message is " + e.Message + " inner error is " + e.InnerException.Message); } }
public DeltaListViewModel() { if (!ViewModelBase.IsInDesignModeStatic) { //Code that throws the exception repo = new DeltaRepository(); AddDelta = new RelayCommand(OnAdd); DeleteDelta = new RelayCommand(OnDelete, CanDelete); SaveDelta = new RelayCommand(OnSave, CanSave); } }
public AddRecordViewModel() { try { if (!ViewModelBase.IsInDesignModeStatic) { _logger.Info("Inside Add Record ViewModel construtor"); Alpharepo = new AlphaRepository(); Betarepo = new BetaRepository(); Gammarepo = new GammaRepository(); DeltaRepo = new DeltaRepository(); ThetaRepo = new ThetaRepository(); AddRepo = new RecordRepository(); AddNewRecord = new RelayCommand(OnAdd, CanAdd); CancelRecord = new RelayCommand(OnCancel, CanCancel); } } catch (Exception e) { _logger.Error("Some error have occured in AddRecordViewModel" + e.StackTrace); _logger.Error("AddRecordViewModel error message is " + e.Message + " inner error is " + e.InnerException.Message); } }
public void Setup() { _scriptRepository = MockRepository.GenerateMock<IScriptRepository>(); _deltasRepository = MockRepository.GenerateMock<IDeltaRepository>(); }
internal Script(IScriptRepository scriptRepository, IDeltaRepository deltasRepository) { _scriptRepository = scriptRepository; _deltasRepository = deltasRepository; }
internal Deployer(IDeployRepository deployRepository, IDeltaRepository deltaRepository) { _deployRepository = deployRepository; _deltaRepository = deltaRepository; }
internal Script(IScriptRepository scriptRepository, IDeltaRepository deltasRepository) { _scriptRepository = scriptRepository; _deltasRepository = deltasRepository; }
public DeltaApplier(IDeltaRepository deltaRepository, ISimulationRepository simulationRepository) { _deltaRepository = deltaRepository; _simulationRepository = simulationRepository; }
public void Setup() { _scriptRepository = MockRepository.GenerateMock <IScriptRepository>(); _deltasRepository = MockRepository.GenerateMock <IDeltaRepository>(); }
internal Deployer(IDeployRepository deployRepository, IDeltaRepository deltaRepository) { _deployRepository = deployRepository; _deltaRepository = deltaRepository; }
public void Setup() { _deployRepository = MockRepository.GenerateMock <IDeployRepository>(); _deltaRepository = MockRepository.GenerateMock <IDeltaRepository>(); }