public ParamsLoggerTests() { _factoryMock = new Mock <ILogFactory>(); _fileServiceMock = new Mock <IFileService>(); _stringServiceMock = new Mock <IStringService>(); _processingPlantMock = new Mock <IProcessingPlant>(); _config = new ConfigModel() { ConsoleLog = true, DebugOnly = true, InfoOnly = true, FileLog = true, ExecuteOnDebugSettings = true, DeleteLogs = true, LogFile = "", ProcessingPlant = _processingPlantMock.Object, FileService = _fileServiceMock.Object, StringService = _stringServiceMock.Object }; _factoryMock.Setup(f => f.GetLogger()) .Returns(new Logger(_config));; _logger = new ParamsLogger(); }
public MainWindowViewModel(IControlsService controlsService) { _controlsService = controlsService; _log = new ParamsLogger(); SwitchCommnad = new DelegateCommand(OnSwitchCommand); Initialization = InitializeAsync(); }