Beispiel #1
0
        public void InterceptCanBeOverridden()
        {
            var called = false;

            OverriddenActionProjection.InterceptCalled = () => called = true;
            var instance = OverriddenActionProjection.Instance <OverriddenActionProjection>();

            var r = m_executor.Execute(new OverridenDataTestCommand());

            Assert.IsTrue(called, "Intercept was not called.");
        }
Beispiel #2
0
        public void Table_is_projected()
        {
            var id = Guid.NewGuid();
            var r  = m_executor.Execute(new DataTestCommand()
            {
                TableID = id
            });

            var rep = new Repository <DataTable>(m_connectionFactory, m_loggerFactory, m_config);
            var t   = rep.Get(id);

            Assert.IsNotNull(t);
        }