public SNMPController(SNMPServices services, EthernetSwitchContext context, ITrapUsersRepository trapUsersRepository, ISettingsRepository settingsRepository, ISNMPMessageStore messageStore) { _services = services; _context = context; this.trapUsersRepository = trapUsersRepository; this.settingsRepository = settingsRepository; this.messageStore = messageStore; }
public async Task SetupAsync() { _settingsRepositoryMock = new Mock <ISettingsRepository>(); _settingsRepositoryMock.Setup(x => x.GetSettings()).ReturnsAsync(new Settings()); _service = new SNMPServices(new LoggerFactory(), new BashCommand(), _settingsRepositoryMock.Object); await _service.Handle(configuration); await _service.Handle(aesUser); await _service.Handle(desUser); await Task.Delay(5000); }