Exemplo n.º 1
0
        public void LogMvtResultsTaskSectionTest_IsNotifiedMailSubjectExists_UpdateCheckFalse()
        {
            var section = new LogMvtResultsTaskSection();
            var task    = new LogMvtResultsTask("task1", "", "", null, false, 1); //tasks contains same id, so regards as update instead of add.

            section.TaskCollection.AddOrUpdate(task);
            Assert.IsFalse(section.IsNotifiedMailSubjectExists(task));
        }
Exemplo n.º 2
0
        public void LogMvtResultsTaskSectionTest_IsNotifiedMailSubjectExists_AddCheckTrue()
        {
            var section = new LogMvtResultsTaskSection();
            var task    = new LogMvtResultsTask("task1", "", "", null, false, 1);
            var task1   = new LogMvtResultsTask("task1", "", "", null, false, 2);

            section.TaskCollection.AddOrUpdate(task);
            Assert.IsTrue(section.IsNotifiedMailSubjectExists(task1));
        }
Exemplo n.º 3
0
        public void IsTaskNameExists_CheckSameIdTask_ReturnsFalse()
        {
            var section = new LogMvtResultsTaskSection();
            var task    = new LogMvtResultsTask("task1", "", "", null, false, 1); //tasks contains same id, so regards as update instead of add.

            section.TaskCollection.AddOrUpdate(task);

            Assert.IsFalse(section.IsTaskNameExists(task));
        }