public JsonFileSettingsFactory(ITelemetryReportingService logger, string fileLocation = "connectionSettings.json", bool saveHardCodedIfNotPresent = true, ISmokeTestSettingsRepository backupFactory = null) { _logger = logger; _fileLocation = fileLocation; _saveIfNotPresent = saveHardCodedIfNotPresent; _backupFactory = backupFactory ?? new HardCodedConnectionSettingsFactory(); }
protected BaseSmokeTest(ISmokeTestSettingsRepository connectionSettingsFactory, ISmokeTestApplicationRepository smokeTestApplicationRepository, ITelemetryReportingService reportingService, IUserLoginRepository userLoginRepository = null, IApprendaApiClientFactory apiClientFactory = null) { _connectionSettingsFactory = connectionSettingsFactory; _smokeTestApplicationRepository = smokeTestApplicationRepository; _reportingService = reportingService; _apiClientFactory = apiClientFactory ?? new ApprendaApiClientFactory(_connectionSettingsFactory); _userLoginRepository = userLoginRepository ?? new SingleUserLoginRepository(_connectionSettingsFactory); }
public ApprendaTestSession(IApprendaApiClientFactory clientFactory, ISmokeTestSettings connectionSettings, TestIsolationLevel isolationLevel, ITelemetryReportingService reportingService, string testName, IUserLogin loginToUse = null) { _clientFactory = clientFactory; ConnectionSettings = connectionSettings; _reportingService = reportingService; _testName = testName; _login = loginToUse ?? connectionSettings.UserLogin; TestIsolationLevel = isolationLevel; NumberOfSessionsInUse++; }
public ApprendaTattletaleApiClient(IConnectionSettings connectionSettings, IRestSession restSession, ITelemetryReportingService reportingService) : base(connectionSettings, restSession) { _reportingService = reportingService; }
public IApprendaApiClient GetV1Client(ITelemetryReportingService reportingService, IRestSession restSession) { var connectionSettings = _connectionSettingsFactory.GetConnectionSettings(); return(new ApprendaTattletaleApiClient(connectionSettings, restSession, reportingService)); }
protected ApprendaAPITest(ITelemetryReportingService logger) : this(new JsonFileSettingsFactory(logger), logger) { }
protected ApprendaAPITest(ISmokeTestSettingsRepository connectionSettingsFactory, ITelemetryReportingService logger) : base(connectionSettingsFactory, new SimpleLocalSmokeTestApplicationRepository(connectionSettingsFactory), logger) { }
static SettingsFactory() { ReportingService = new ConsoleTelemetryService(); }