Created
October 23, 2012 01:03
-
-
Save Restuta/3936035 to your computer and use it in GitHub Desktop.
Command to Event specification
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using GoldMine.Core.CommandHandlers; | |
| using GoldMine.Core.Commands; | |
| using Machine.Specifications; | |
| namespace GoldMine.Core.Tests.Integration.Contacts | |
| { | |
| public class when_sending_a_CreateTask_command : using_in_memory_cqrs_runtime | |
| { | |
| Because of = () => | |
| CommandBus.Send(new CreateTaskCommand()); | |
| It should_result_in_TaskCreated_event = () => | |
| EventStore.ShouldHaveExactlyOne<TaskCreatedEvent>(); | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment