Esempio n. 1
0
        public void HistoryDoesNotExistTest()
        {
            m_importHistoryManagerMock.Setup(x => x.GetLastImportHistoryForImportedProjectMetadata(It.IsAny <int>())).Returns(() => null);

            var filteringExpressions = new Dictionary <string, List <string> > {
                { "100a", new List <string> {
                      "%Hus%"
                  } }
            };

            m_filteringManager.SetFilterData(m_importedRecord, filteringExpressions, m_parser);

            Assert.AreEqual(false, m_importedRecord.IsNew);
            Assert.AreEqual(true, m_importedRecord.IsSuitable);
        }
Esempio n. 2
0
        public void FilterEqualTest()
        {
            var filteringExpressions = new Dictionary <string, List <string> > {
                { "100a", new List <string> {
                      "Hus, Jan,"
                  } }
            };

            m_filteringManager.SetFilterData(m_importedRecord, filteringExpressions, m_parser);

            Assert.AreEqual(true, m_importedRecord.IsSuitable);
        }