public void ImportarCsvViaApi() { var date = DateTime.Now.AddDays(-1); var param = new ParametrosTranspetroDto() { DataInicial = new DateTime(date.Year, date.Month, date.Day, 14, 00, 00), DataFinal = new DateTime(date.Year, date.Month, date.Day, 15, 00, 00), IntervaloMedicao = 3600, Login = "******", Senha = "t@g45$g", Path = "C:/tmp" }; var lista = service.ImportarCsvViaApi(param); CollectionAssert.IsNotEmpty(lista); }
public ActionResult <IEnumerable <TagDto> > ImportarCsvViaApi(ParametrosTranspetroDto param) { return(Ok(service.ImportarCsvViaApi(param))); }