/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
Possible License(s): CC-BY-SA-3.0
- using System;
- using Bifrost.Fakes.Events;
- using Machine.Specifications;
-
- namespace Bifrost.Specs.Events.for_EventStream
- {
- public class when_appending_an_event_to_an_uncommitted_event_stream_which_has_been_attached_to_an_event_source
- : given.an_empty_uncommitted_event_stream
- {
- private static Exception Exception;
-
- Because of = () =>
- {
- var attachedEvent = new SimpleEvent(Guid.NewGuid());
- Exception = Catch.Exception(() => EventStream.Append(attachedEvent));
- };
-
- It should_throw_an_exception = () => Exception.ShouldNotBeNull();
- }
- }