Exemplo n.º 1
0
        public void use_per_stream_aggregation_by_guid()
        {
            var withGuid = new EmptyCustomProjection <User, Guid>();

            withGuid.AggregateByStream();

            withGuid.Slicer.ShouldBeOfType <ByStreamId <User> >();
        }
Exemplo n.º 2
0
        public void use_per_stream_aggregation_by_string()
        {
            var withGuid = new EmptyCustomProjection <StringDoc, string>();

            withGuid.AggregateByStream();

            withGuid.Slicer.ShouldBeOfType <ByStreamKey <StringDoc> >();
        }
Exemplo n.º 3
0
        public void throws_if_you_try_to_slice_by_string_on_something_besides_guid_or_string()
        {
            var wrong = new EmptyCustomProjection <User, int>();

            Exception <InvalidProjectionException> .ShouldBeThrownBy(() =>
            {
                wrong.AggregateByStream();
            });
        }