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)));
            }
        }
Пример #2
0
 private static ImportInfo GetImportInfo(ClosingStructuresPlugin plugin)
 {
     return(plugin.GetImportInfos().First(ei => ei.DataType == typeof(ClosingStructuresCalculationGroupContext)));
 }
Пример #3
0
 private static ImportInfo GetImportInfo(ClosingStructuresPlugin plugin)
 {
     return(plugin.GetImportInfos().First(ii => ii.DataType == typeof(ClosingStructuresContext)));
 }