public void SetUp() { logMock = MockRepository.GenerateMock<ILog>(); sleep = MockRepository.GenerateMock<ISleep>(); stop = MockRepository.GenerateMock<IStop>(); this.runTaskSet = MockRepository.GenerateMock<IRunTaskSet>(); }
public TaskManager(ILog log, int sleepTime, ISleep sleep, IStop stop, Service service) { TaskManager.log = log; this.stop = stop; this.service = service; this.sleepTime = sleepTime; this.sleep = sleep; }
public Controller(ITaskSet taskSet, ISleep sleep, IStop stop, ILog log) { this.config = config; this.taskSet = taskSet; this.sleep = sleep; this.stop = stop; this.log = log; }
public TaskManager(ILog log, int sleepTime,ISleep sleep ,IStop stop, Service service) { TaskManager.log = log; this.stop = stop; this.service = service; this.sleepTime = sleepTime; this.sleep = sleep; }
public Controller(IRunTaskSet runTaskSet, ISleep sleep, IStop stop, ILog log) { //this.config = config; this.runTaskSet = runTaskSet; this.sleep = sleep; this.stop = stop; this.log = log; }
public void SetUp() { log = MockRepository.GenerateMock<ILog>(); stop = MockRepository.GenerateMock<IStop>(); sleeper = MockRepository.GenerateMock<ISleep>(); configController = MockRepository.GenerateMock<IConfigController>(); path = "somePath"; }
public void SetUp() { sleepTime = 1000; reader = MockRepository.GenerateMock<IConfigReader>(); cache = MockRepository.GenerateMock<ICache>(); sleep = MockRepository.GenerateMock<ISleep>(); log = MockRepository.GenerateMock<ILog>(); repository = new ConfigRepository(this.reader, new KnownGraphiteClients(), this.cache, this.sleep, this.log, sleepTime); }
public SleepBuilder(ISleep sleep) { _sleep = new Sleep { ChildId = sleep.ChildId, EventType = EventType.Sleep, Transition = sleep.Transition }; }
public ConfigRepository(IConfigReader configReader, KnownGraphiteClients knownGraphiteClients, ICache cache, ISleep sleep, ILog log, int errorReadingConfigSleepTime) { this.configReader = configReader; this.knownGraphiteClients = knownGraphiteClients; this.cache = cache; this.sleep = sleep; this.log = log; this.errorReadingConfigSleepTime = errorReadingConfigSleepTime; }
public CreateOrUpdateContactsInHubSpot(IHttpClientFacade http, IClock clock, IJsonSerializer serializer, ISleep sleeper, string hubSpotApiKey, ILogger <CreateOrUpdateContactsInHubSpot> logger) { _http = http ?? throw new ArgumentNullException(nameof(http)); _clock = clock ?? throw new ArgumentNullException(nameof(clock)); _serializer = serializer ?? throw new ArgumentNullException(nameof(serializer)); _sleeper = sleeper ?? throw new ArgumentNullException(nameof(sleeper)); _hubSpotApiKey = hubSpotApiKey ?? throw new ArgumentNullException(nameof(hubSpotApiKey)); _logger = logger ?? throw new ArgumentNullException(nameof(logger)); }
public TaskManager(ILog log, IConfigController configController, string path, IStop stop, ISleep sleep, int configurationReReadTime) { this.log = log; this.configController = configController; this.path = path; this.stop = stop; this.sleep = sleep; this.configurationReReadTime = configurationReReadTime; TaskBag = new TaskBag(new List<IThread>()); }
public void SetUp() { sleepTime = 1000; assemblyResolver = MockRepository.GenerateMock<IAssemblyResolver>(); config = new SqlToGraphiteConfig(assemblyResolver, log); reader = MockRepository.GenerateMock<IConfigReader>(); cache = MockRepository.GenerateMock<ICache>(); sleep = MockRepository.GenerateMock<ISleep>(); log = MockRepository.GenerateMock<ILog>(); configPersister = MockRepository.GenerateMock<IConfigPersister>(); genericSerializer = MockRepository.GenerateMock<IGenericSerializer>(); repository = new ConfigRepository(this.reader, this.cache, this.sleep, this.log, this.sleepTime, this.configPersister, this.genericSerializer); }
/// <summary> /// Constructor /// </summary> /// <param name="eventHandler">Event Handler</param> /// <param name="sleep">Sleep</param> public BufferedMessageEventHandler(IBusEventHandler <T> eventHandler, ISleep sleep) { if (null == eventHandler) { throw new ArgumentNullException("eventHandler"); } if (null == sleep) { throw new ArgumentNullException("sleep"); } this.eventHandler = eventHandler; this.sleep = sleep; }
public ConfigRepository(IConfigReader configReader, ICache cache, ISleep sleep, ILog log, int errorReadingConfigSleepTime, IGenericSerializer genericSerializer) { this.configReader = configReader; this.cache = cache; this.sleep = sleep; ConfigRepository.log = log; this.errorReadingConfigSleepTime = errorReadingConfigSleepTime; this.genericSerializer = genericSerializer; clientList = new GraphiteClients(); var dir = new DirectoryImpl(); if (ar == null) { ar = new AssemblyResolver(dir, log); } this.masterConfig = new SqlToGraphiteConfig(ar, log); this.Hash = "NotSet"; }
public UserLoginAction( IDirectoryServicesConfigurationStore configurationStore, IDirectoryServicesCredentialValidator credentialValidator, IAuthCookieCreator issuer, IInvalidLoginTracker loginTracker, ISleep sleep, IApiActionModelBinder modelBinder, IApiActionResponseCreator responseCreator, IUserMapper userMapper) { this.configurationStore = configurationStore; this.credentialValidator = credentialValidator; this.issuer = issuer; this.loginTracker = loginTracker; this.sleep = sleep; this.modelBinder = modelBinder; this.responseCreator = responseCreator; this.userMapper = userMapper; }
public Main(IApplicationController controller, IMain view, ISleep sleep, IMailLogger maillogger, ILogin login, IHash hash, IChecked2017 checked2017, IChecked2018 checked2018, IChecked2018i checked2018I, IChecked21_1 checked21_1, IOperations operations) : base(controller, view) { try { this.sleep = sleep; this.maillogger = maillogger; this.login = login; this.hash = hash; this.checked2017 = checked2017; this.checked2018 = checked2018; this.checked2018I = checked2018I; this.checked21_1 = checked21_1; this.operations = operations; logger = LogManager.GetCurrentClassLogger(); dataBase = new DataBase(); config = new Config(); View.StartedProgram += () => StartedProgram(); View.LoadSettings += () => LoadSettings(); View.SaveSettings += () => SaveSettingsAsync(); View.StoppedChecker += () => checked2018.Stopped(); View.StoppedChecker += () => checked2018I.Stopped(); View.StoppedChecker += () => checked21_1.Stopped(); View.StoppedChecker += () => checked2017.Stopped(); checked2018.Load += (string message) => LoadOperation(message); checked21_1.Load += (string message) => LoadOperation(message); checked2017.Load += (string message) => LoadOperation(message); checked2018I.Load += (string message) => LoadOperation(message); View.ResetAll += () => ResetAll(); View.Reset21_1 += () => Reset21_1(); View.Reset2018 += () => Reset2018(); View.Reset2018i += () => Reset2018i(); View.Reset2017 += () => Reset2017(); logger.Info("Инициализация котроллера взаимодействия с Tekla успешна"); } catch (Exception Ex) { maillogger.AsyncSendingLog(Ex.ToString()); View.Error(Ex.Message); } }
protected UserAuthenticatedAction( ILog log, TAuthTokenHandler authTokenHandler, IPrincipalToUserHandler principalToUserHandler, IUserStore userStore, TStore configurationStore, IAuthCookieCreator authCookieCreator, IInvalidLoginTracker loginTracker, ISleep sleep) { this.log = log; this.authTokenHandler = authTokenHandler; this.principalToUserHandler = principalToUserHandler; this.userStore = userStore; ConfigurationStore = configurationStore; this.authCookieCreator = authCookieCreator; this.loginTracker = loginTracker; this.sleep = sleep; }
public AzureADUserAuthenticatedAction( ILog log, IAzureADAuthTokenHandler authTokenHandler, IAzureADPrincipalToUserResourceMapper principalToUserResourceMapper, IUserStore userStore, IAzureADConfigurationStore configurationStore, IApiActionResponseCreator responseCreator, IAuthCookieCreator authCookieCreator, IInvalidLoginTracker loginTracker, ISleep sleep) : base( log, authTokenHandler, principalToUserResourceMapper, userStore, configurationStore, responseCreator, authCookieCreator, loginTracker, sleep) { }
virtual public void WatchS(ISleep an) { Console.Write($"{this.GetType().Name} is watching how "); an.Sleep(); }
public Laptop(string name, int width, int height) : base(name) { display = new Display(width, height); sleepController = new SleepControl(); }
public SnoozeManager(ISleep target) { _target = target; }
public FakeDelayTimer(ISleep sleep) { _sleep = sleep; _sleep.Elapsed += Sleep_Elapsed; }
public Animal(ISleep sleepPattern) { _sleepPattern = sleepPattern ?? throw new NullReferenceException("Can't sleep"); }
public Turkey(ICackle cackle, IEat eat, ISleep sleep) : base(cackle, eat, sleep) { }
public Cat(ISleep sleepPattern) : base(sleepPattern) { }
public Lion(ISleep sleepPattern) : base(sleepPattern) { }
public ConfigRepository(IConfigReader configReader, ICache cache, ISleep sleep, ILog log, int errorReadingConfigSleepTime, IConfigPersister configPersister, IGenericSerializer genericSerializer) : this(configReader, cache, sleep, log, errorReadingConfigSleepTime, genericSerializer) { this.configPersister = configPersister; }
public FixedPausePolicy(ISleep sleeper, int sleepMillis) { mSleeper = sleeper; mSleepMillis = sleepMillis; }
public GoogleAppsUserAuthenticatedAction(ILog log, IGoogleAuthTokenHandler authTokenHandler, IPrincipalToUserHandler principalToUserHandler, IUserStore userStore, IGoogleAppsConfigurationStore configurationStore, IAuthCookieCreator authCookieCreator, IInvalidLoginTracker loginTracker, ISleep sleep) : base(log, authTokenHandler, principalToUserHandler, userStore, configurationStore, authCookieCreator, loginTracker, sleep) { }
public Desktop(string name, CaseType caseType) : base(name) { this.caseType = caseType; sleepController = new SlepController(); }
public Bear(ISleep sleepPattern) : base(sleepPattern) { }
public BaseTurkey(ICackle cackle, IEat eat, ISleep sleep) { _cackle = cackle; _eat = eat; _sleep = sleep; }
public IncreasingPausePolicy(ISleep sleeper, int startingSleepMillis, int percentageToIncrease) { mSleeper = sleeper; mCurrentSleepMillis = startingSleepMillis; mPercentageToIncreaseAsDecimal = percentageToIncrease / 100m; }