public void Initiate_EmptyConfigurationPath_Logs() { var monitor = new UploadTradeFileMonitor( this._uploadConfiguration, this._directory, this._fileProcessor, this._enrichmentService, this._ordersRepository, this._fileUploadOrdersRepository, this._messageSender, this._systemProcessContext, this._omsVersioner, this._logger); monitor.Initiate(); A.CallTo(() => this._directory.Create(A <string> .Ignored)).MustNotHaveHappened(); }
public void Initiate_SetConfigurationPath_Logs() { var monitor = new UploadTradeFileMonitor( this._uploadConfiguration, this._directory, this._fileProcessor, this._enrichmentService, this._ordersRepository, this._fileUploadOrdersRepository, this._messageSender, this._systemProcessContext, this._omsVersioner, this._logger); A.CallTo(() => this._uploadConfiguration.DataImportTradeFileUploadDirectoryPath).Returns("testPath"); monitor.Initiate(); A.CallTo(() => this._directory.Create("testPath")).MustHaveHappenedOnceExactly(); }