public void Projection_MockProjectionOne_TestMethod()
        {
            int notexpected = 0;
            int actual      = 0;

            TableEventStreamReader testReader = new TableEventStreamReader(
                new EventStreamAttribute("Domain Test", "Entity Type Test", "Instance 123"),
                "RetailBank");

            ProjectionProcessor testObj = new ProjectionProcessor(testReader);

            var result = testObj.Process <MockProjectionOne>();

            actual = result.Result.TotalCount;

            Assert.AreNotEqual(notexpected, actual);
        }
        public void Projection_MockProjectionOne_TestMethod()
        {
            decimal notexpected = 0;
            decimal actual      = 0;

            TableEventStreamReader testReader = new TableEventStreamReader(
                new EventStreamAttribute("Bank", "Account", "Instance 1234"),
                "RetailBank");

            ProjectionProcessor testObj = new ProjectionProcessor(testReader);

            var result = testObj.Process <MockBalanceProjection>();

            actual = result.Result.CurrentBalance;

            Assert.AreNotEqual(notexpected, actual);
        }
        public void Projection_MockBalanceProjection_TestMethod()
        {
            decimal notexpected = 0;
            decimal actual      = 0;

            TableEventStreamReader testReader = new TableEventStreamReader(
                new EventStreamAttribute("Bank", "Account", "Instance 1234"),
                "RetailBank");

            ProjectionProcessor testObj = new ProjectionProcessor(testReader);

            MockBalanceProjection prior = new MockBalanceProjection();

            // start from event # 2
            prior.SetLastEventSequence(274);
            prior.SetInitialBalance(123.45M);

            var result = testObj.Process <MockBalanceProjection>(prior);

            actual = result.Result.CurrentBalance;

            Assert.AreNotEqual(notexpected, actual);
        }