Skip to content

Instantly share code, notes, and snippets.

@Restuta
Created October 23, 2012 01:03
Show Gist options
  • Save Restuta/3936035 to your computer and use it in GitHub Desktop.
Save Restuta/3936035 to your computer and use it in GitHub Desktop.
Command to Event specification
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