private void Configure() { var configuration = ConfigurationHelper.ReadConfig(); this.appPoolRecycler = new AppPoolRecycler(); if (configuration.RunTimeIntervalSeconds > 0) { this.timerInterval = configuration.RunTimeIntervalSeconds * 1000; } }
public void Setup() { appPoolRecycler = new AppPoolRecycler(); Logger.Instance = Substitute.For <ILogger>(); SqlHelper.Instance = Substitute.For <ISqlHelper>(); var serverManager = Substitute.For <IServerManagerHelper>(); applicationPool = Substitute.For <IApplicationPoolWrapper>(); serverManager.GetApplicationPool(Arg.Any <string>()).Returns(applicationPool); ServerManagerHelper.Instance = serverManager; }