public void source_definition_is_correct()
            {
                var expected = SourceDefinitionBuilder.From(b => {
                    b.FromAll();
                    b.IncludeEvent("a");
                });

                AssertEx.AreEqual(expected, _source);
            }
            public void source_definition_is_correct()
            {
                var expected = SourceDefinitionBuilder.From(b => {
                    b.AllEvents();
                    b.FromStream("stream1");
                });

                AssertEx.AreEqual(expected, _source);
            }
        public void source_definition_is_correct()
        {
            var expected = SourceDefinitionBuilder.From(b => {
                b.AllEvents();
                b.FromAll();
                b.SetHandlesStreamDeletedNotifications();
            });

            AssertEx.AreEqual(expected, _source);
        }
            public void source_definition_is_correct()
            {
                var expected = SourceDefinitionBuilder.From(b => {
                    b.AllEvents();
                    b.FromAll();
                    b.SetResultStreamNameOption("state-stream");
                });

                AssertEx.AreEqual(expected, _source);
            }
            public void source_definition_is_correct()
            {
                var expected = SourceDefinitionBuilder.From(b => {
                    b.AllEvents();
                    b.FromAll();
                    b.SetByCustomPartitions();
                });

                AssertEx.AreEqual(expected, _source);
            }
            public void source_definition_is_correct()
            {
                var expected = SourceDefinitionBuilder.From(b => {
                    b.AllEvents();
                    b.FromAll();
                    b.SetProcessingLag(500);
                    b.SetReorderEvents(true);
                });

                AssertEx.AreEqual(expected, _source);
            }
            public void source_definition_is_correct()
            {
                var expected = SourceDefinitionBuilder.From(b => {
                    b.AllEvents();
                    b.FromAll();
                    b.SetDefinesFold();
                    b.SetIsBiState(true);
                });

                AssertEx.AreEqual(expected, _source);
            }
            public void source_definition_is_correct()
            {
                var expected = SourceDefinitionBuilder.From(b => {
                    b.AllEvents();
                    b.FromAll();
                    b.NoWhen();
                    b.SetOutputState();
                });

                AssertEx.AreEqual(expected, _source);
            }
            public void source_definition_is_correct()
            {
                var expected = SourceDefinitionBuilder.From(b => {
                    b.FromAll();
                    b.IncludeEvent("some");
                    b.SetDefinesStateTransform();
                    b.SetOutputState();
                });

                AssertEx.AreEqual(expected, _source);
            }
Beispiel #10
0
 public IQuerySources GetSourceDefinition()
 {
     return(SourceDefinitionBuilder.From(ConfigureSourceProcessingStrategy));
 }