public void use_per_stream_aggregation_by_guid() { var withGuid = new EmptyCustomProjection <User, Guid>(); withGuid.AggregateByStream(); withGuid.Slicer.ShouldBeOfType <ByStreamId <User> >(); }
public void use_per_stream_aggregation_by_string() { var withGuid = new EmptyCustomProjection <StringDoc, string>(); withGuid.AggregateByStream(); withGuid.Slicer.ShouldBeOfType <ByStreamKey <StringDoc> >(); }
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(); }); }