Пример #1
0
        public void Should_match_the_alpha_node()
        {
            _result = null;

            using (StatefulSession session = _engine.CreateSession())
            {
                session.Add(new Order {
                    OrderId = "123", Amount = 10001.0m
                });
                session.Run();

                List <FactHandle <Violation> > violations = session.Facts <Violation>().ToList();

                Assert.AreEqual(1, violations.Count);
                Assert.IsNotNull(_result);
                Assert.AreEqual("123", _result.Value);
            }
        }