Example #1
0
 public void TestInitialize()
 {
     _tldc = new TestLocalDataContext();
     TestDataFiller.Fill(_tldc);
     _testDataService = new TestDataService(_tldc);
     _dataContext     = new DataContext(_testDataService);
 }
 public NotesController(
     INoteService noteService,
     IUserSettingsService userSettingsService,
     ITestDataService testDataService)
 {
     _noteService         = noteService;
     _userSettingsService = userSettingsService;
     _testDataService     = testDataService;
 }
Example #3
0
        public void SetupWorkspaceWithSampleDb()
        {
            _testConfiguration = ConfigureWorkspaceWithSampleDb();
            _executionService  = new CommandLineExecutionService(_testConfiguration.CliProcessPath);

            //create test data service provider
            var testDataServiceFactory = new TestDataServiceFactory();

            _testDataService = testDataServiceFactory.Create(_testConfiguration.Platform);
        }
Example #4
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ReportLinkDataService" /> class.
 /// </summary>
 /// <param name="mapperFactory">The mapper factory.</param>
 /// <param name="table">The table.</param>
 /// <param name="testDataService">The test data service.</param>
 /// <param name="sharedTestDataService">The shared test data service.</param>
 public ReportLinkDataService(
     IMapperFactory mapperFactory,
     IRepository <TblReportExecutionLinkData> table,
     ITestDataService testDataService,
     ISharedTestDataService sharedTestDataService)
     : base(mapperFactory, table)
 {
     this.testDataService       = testDataService;
     this.sharedTestDataService = sharedTestDataService;
 }
        public RibbonViewModel(ITestDataService testDataService, IFilterSchemeManager filterSchemeManager,
             IFilterService filterService, IUIVisualizerService uiVisualizerService)
        {
            _testDataService = testDataService;
            _filterSchemeManager = filterSchemeManager;
            _filterService = filterService;
            _uiVisualizerService = uiVisualizerService;
            RawItems = _testDataService.GetTestItems();

            NewSchemeCommand = new Command(OnNewSchemeExecute);
        }
Example #6
0
        public void SetupWorkspaceWithSampleDb()
        {
            //ensures connection string values with double quote are preserved in when passed along the CLI
            _testConfiguration = ConfigureWorkspaceWithSampleDb();
            _executionService  = new CommandLineExecutionService(_testConfiguration.CliProcessPath);

            //create test data service provider
            var testDataServiceFactory = new TestDataServiceFactory();

            _testDataService = testDataServiceFactory.Create(_testConfiguration.Platform);
        }
Example #7
0
        public RibbonViewModel(ITestDataService testDataService, IFilterSchemeManager filterSchemeManager,
                               IFilterService filterService, IUIVisualizerService uiVisualizerService)
        {
            _testDataService     = testDataService;
            _filterSchemeManager = filterSchemeManager;
            _filterService       = filterService;
            _uiVisualizerService = uiVisualizerService;
            RawItems             = _testDataService.GetTestItems();

            NewSchemeCommand = new TaskCommand(OnNewSchemeExecuteAsync);
        }
        public MainWindowViewModel(ITestDataService testDataService)
        {
            Argument.IsNotNull(() => testDataService);

            _testDataService = testDataService;

            RawItems = _testDataService.GenerateTestItems();
            FilteredItems = new FastObservableCollection<TestEntity>();

            FilteredItems.CollectionChanged += (sender, e) => Console.WriteLine("Collection updated");
        }
Example #9
0
        public void Setup()
        {
            _testConfiguration = base.ConfigureWithEmptyWorkspace();

            //create test data service provider
            var testDataServiceFactory = new TestDataServiceFactory();

            _testDataService = testDataServiceFactory.Create(_testConfiguration.Platform);

            //create data service factory for migration proper
            _traceService            = new FileTraceService();
            _migrationServiceFactory = new MigrationServiceFactory(_traceService);
        }
        public MainViewModel(ITestDataService testDataService, IFilterService filterService)
        {
            Argument.IsNotNull(() => testDataService);
            Argument.IsNotNull(() => filterService);

            _testDataService = testDataService;
            _filterService = filterService;
            _filterService.SelectedFilterChanged += OnFilterServiceSelectedFilterChanged;
            RawItems = _testDataService.GetTestItems();
            FilteredItems = new FastObservableCollection<TestEntity>();

            FilteredItems.CollectionChanged += (sender, e) => Log.Info("Collection updated");
        }
Example #11
0
 public AmbulatoryViewModelFactory(
     IDbContextFactory <HospitalDbContext> contextFactory,
     ITestDataService testDataService,
     ITherapyDataService therapyDataService,
     AmbulatoryDataService ambulatoryDataService,
     EntryDataService entryDataServices)
 {
     _contextFactory        = contextFactory;
     _testDataService       = testDataService;
     _therapyDataService    = therapyDataService;
     _ambulatoryDataService = ambulatoryDataService;
     _entryDataServices     = entryDataServices;
 }
Example #12
0
        public MainViewModel(ITestDataService testDataService, IFilterService filterService)
        {
            Argument.IsNotNull(() => testDataService);
            Argument.IsNotNull(() => filterService);

            _testDataService = testDataService;
            _filterService   = filterService;
            _filterService.SelectedFilterChanged += OnFilterServiceSelectedFilterChanged;
            RawItems      = _testDataService.GetTestItems();
            FilteredItems = new FastObservableCollection <TestEntity>();

            FilteredItems.CollectionChanged += (sender, e) => Log.Info("Collection updated");
        }
Example #13
0
 public TestDataController(ITestDataService testDataService)
 {
     _testDataService = testDataService;
 }
Example #14
0
 /// <summary>
 /// Initializes a new instance of the <see cref="TestController"/> class.
 /// </summary>
 /// <param name="loggerService">The logger service.</param>
 /// <param name="testService">The test service.</param>
 /// <param name="testDataService">The test data service.</param>
 public TestController(ILoggerService loggerService, ITestService testService, ITestDataService testDataService)
     : base(loggerService)
 {
     this.testService     = testService;
     this.testDataService = testDataService;
 }
Example #15
0
 public MatchService(DbService dbService, ITestDataService testDataService, ITeamService teamService)
 {
     _dbService       = dbService;
     _testDataService = testDataService;
     _teamService     = teamService;
 }
Example #16
0
 public SetupController(ITestDataService service)
 {
     this.service = service;
 }
Example #17
0
 public MedCardController(ITestDataService dataService, EntryDataService entryDataService)
 {
     _testDataService  = dataService;
     _entryDataService = entryDataService;
 }
Example #18
0
 public TestController(ITestDataService testDataService)
 {
     this.testDataService = testDataService;
 }
Example #19
0
 public TestDataController(ITestDataService testDataService)
 {
     this.TestDataService = testDataService;
     this.AddDisposableObject(testDataService);
 }
Example #20
0
 public TestApiController(IConfigurationService configuration, ITestDataService service)
 {
     this.configuration = configuration;
     this.service       = service;
 }
Example #21
0
 public TestDataController(ITestDataService testDataService)
 {
     this.TestDataService = testDataService;
     this.AddDisposableObject(testDataService);
 }
Example #22
0
 public ExcepitionTaskTests()
 {
     _testDataService = _lifeTimeScope.Resolve <ITestDataService>();
 }
Example #23
0
 public CreatePhoneCallForNewLeadTests()
 {
     _testDataService = _lifeTimeScope.Resolve <ITestDataService>();
 }
Example #24
0
 public DraftService(ITestDataService testDataService)
 {
     _testDataService = testDataService;
 }
Example #25
0
 public UsersController(ITestDataService testDataService, IMapper mapper)
 {
     _testDataService = testDataService;
     _mapper          = mapper;
 }
Example #26
0
 public TestContainer(ITestDataService testDataService)
 {
     _testDataService = testDataService;
 }
Example #27
0
 /// <summary>
 /// Initializes a new instance of the <see cref="TestDataController"/> class.
 /// </summary>
 /// <param name="loggerService">The logger service.</param>
 /// <param name="testDataService">The test data service.</param>
 /// <param name="testDataSharedTestDataMapService">The shared test data service.</param>
 public TestDataController(ILoggerService loggerService, ITestDataService testDataService, ITestDataSharedTestDataMapService testDataSharedTestDataMapService)
     : base(loggerService)
 {
     this.testDataService = testDataService;
     this.testDataSharedTestDataMapService = testDataSharedTestDataMapService;
 }
Example #28
0
 public CategoriesController(ITestDataService testDataService, IMapper mapper)
 {
     _testDataService = testDataService;
     _mapper          = mapper;
 }
Example #29
0
 public DiagnosticViewModel(ITestDataService testDataService)
 {
     PhysicalContainer = new TestContainer(testDataService);
     ToolContainer     = new TestContainer(testDataService);
     LabContainer      = new TestContainer(testDataService);
 }
Example #30
0
        public CrmTestBase()
        {
            TestData = _lifeTimeScope.Resolve <ITestDataService>();

            CrmTestDataService.AddCleanUpDeleteHanlder(new LeadDeleteHandler());
        }