示例#1
0
            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));
            }
示例#2
0
            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);
            }
示例#3
0
 public List <string> ProcessImporter(string input, string databaseSource)
 {
     return(productImporterProvider.ProcessImporter(input, databaseSource));
 }