public void IsDataSourceValid() { string input = "import capterra feed-products/capterra.yaml"; string dataSource = "Postgress"; var process = new ProductImporterProvider(); Assert.Throws <InvalidOperationException>(() => process.ProcessImporter(input, dataSource)); }
public void IsInputValid() { string input = "import capterra feed-products/capterra.yaml"; var process = new ProductImporterProvider(); var result = process.ProcessImporter(input, Constants.SOURCEMYSQL); Assert.AreEqual(typeof(List <string>), result.GetType()); Assert.IsNotEmpty(input); Assert.IsNotEmpty(Constants.SOURCEMONGODB); }
public List <string> ProcessImporter(string input, string databaseSource) { return(productImporterProvider.ProcessImporter(input, databaseSource)); }