Example #1
0
        public void TearDown()
        {
            filter.Reset();
            var events = filter.Events
                         .Where(e => !e.ExceptionObject.Message.Contains("не удалось определить тип парсера"))
                         .ToArray();

            Assert.That(events, Is.Empty, events.Implode(e => e.ExceptionObject, Environment.NewLine));
        }
        public void TearDown()
        {
            var waybillExcludeFileToRemove = session.Query <WaybillExcludeFile>().ToList();

            session.DeleteEach(waybillExcludeFileToRemove);

            filter.Reset();
            var events = filter.Events
                         .Where(e => e.ExceptionObject.Message != "Не удалось определить тип парсера")
                         .ToArray();

            Assert.That(events, Is.Empty, filter.Events.Implode(e => e.ExceptionObject));
            if (session.Transaction.IsActive)
            {
                session.Flush();
                session.Transaction.Commit();
            }
        }
 public void Teardown()
 {
     events.Reset();
 }