PageRenderTime 12ms CodeModel.GetById 9ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 1ms

/Source/Bifrost.Specs/Events/for_EventStream/when_appending_an_event_to_an_uncommitted_event_stream_which_has_been_attached_to_an_event_source.cs

#
C# | 20 lines | 17 code | 3 blank | 0 comment | 0 complexity | 8a0692a9380f84982cd2352143da2334 MD5 | raw file
 1using System;
 2using Bifrost.Fakes.Events;
 3using Machine.Specifications;
 4
 5namespace Bifrost.Specs.Events.for_EventStream
 6{
 7    public class when_appending_an_event_to_an_uncommitted_event_stream_which_has_been_attached_to_an_event_source
 8        : given.an_empty_uncommitted_event_stream
 9    {
10        private static Exception Exception;
11
12        Because of = () =>
13        {
14            var attachedEvent = new SimpleEvent(Guid.NewGuid());
15            Exception = Catch.Exception(() => EventStream.Append(attachedEvent));
16        };
17
18        It should_throw_an_exception = () => Exception.ShouldNotBeNull();
19    }
20}