public void GetImportInfos_ReturnsSupportedImportInfos()
        {
            // Setup
            using (var plugin = new ClosingStructuresPlugin())
            {
                // Call
                ImportInfo[] importInfos = plugin.GetImportInfos().ToArray();

                // Assert
                Assert.AreEqual(2, importInfos.Length);
                Assert.IsTrue(importInfos.Any(i => i.DataType == typeof(ClosingStructuresContext)));
                Assert.IsTrue(importInfos.Any(i => i.DataType == typeof(ClosingStructuresCalculationGroupContext)));
            }
        }
Esempio n. 2
0
 private static ImportInfo GetImportInfo(ClosingStructuresPlugin plugin)
 {
     return(plugin.GetImportInfos().First(ei => ei.DataType == typeof(ClosingStructuresCalculationGroupContext)));
 }
Esempio n. 3
0
 private static ImportInfo GetImportInfo(ClosingStructuresPlugin plugin)
 {
     return(plugin.GetImportInfos().First(ii => ii.DataType == typeof(ClosingStructuresContext)));
 }