public DocumentController(IDocumentService documentService, IConfiguration conf) { var strConn = conf.GetValue <string>("Oracle:ConnStr"); _documentService = documentService; _documentService.Connect(strConn); }
public void Setup() { IInfraDAL dal = new InfraDAL(); var strConn = "Data Source=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=localhost)(PORT=1521)))" + "(CONNECT_DATA=(SERVER=DEDICATED)(SERVICE_NAME=XE)));" + "User Id=ZIVPROJ;Password=1234;"; _documentService = new DocumentServiceImpl(new DocMarkingSystemDALImpl(dal), new DocumentSocketImpl(new SocketHandlerInfra(new ConnectionManagerInfra()))); _documentService.Connect(strConn); }