public Worker(OPCUAClient opc, Logger logger, OPCUATagEventHandler tagEventHandler, Data.EventHandlerLinker projectWorker, IConfiguration configuration) { _opc = opc; _logger = logger; _tagEventHandler = tagEventHandler; _projectWorker = projectWorker; _configuration = configuration; }
public Task <IActionResult> TestReadFromServer() { IOptions <ServerOptions> sampleOptions = Options.Create <ServerOptions>(new ServerOptions()); OPCUAClient _client = new OPCUAClient(); ApiController _apiController = new ApiController(sampleOptions, _client); var result = _apiController.GetNode(1); var okResult = result; Assert.NotNull(okResult); //Assert.Equal(200, okResult); return(null); }
public EventHandlerLinker(OPCUAClient _opc, Logger _logger, EmailHandler _email) { opc = _opc; logger = _logger; email = _email; }