示例#1
0
        public void setUpDefinitions(Serialized client)
        {
            Debug.WriteLine("Setting up Reaction: " + notifierName);
            Assert.AreEqual(0, client.ListReactionDefinitions().Definitions.Count);
            var reactionDefinition = createNotifierReaction();

            client.CreateOrUpdateReactionDefinition(notifierName, reactionDefinition);

            Debug.WriteLine("Setting up single projection: " + ordersProjections);
            var ordersProjectionDefinition = createSingleProjectionDefinition(ordersProjections);

            client.CreateProjectionDefinition(ordersProjectionDefinition);

            Debug.WriteLine("Setting up aggregated projection: " + ordersProjections);
            var orderTotalsProjectionDefinition = createAggregatedProjectionDefinition(orderTotalsProjection);

            client.CreateProjectionDefinition(orderTotalsProjectionDefinition);
        }