Skip to content

Instantly share code, notes, and snippets.

@plioi
Created January 26, 2016 22:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save plioi/d4bf27f5774ea5f7d8a7 to your computer and use it in GitHub Desktop.
Save plioi/d4bf27f5774ea5f7d8a7 to your computer and use it in GitHub Desktop.
namespace ContactList.Tests.Features
{
using Core.Domain;
using ContactList.Features.Contact;
using static Testing;
using Should;
public class ContactEditTests
{
public void ShouldDisplaySelectedContact(Contact contactToEdit, Contact anotherContact)
{
Save(contactToEdit, anotherContact);
var selectedContactId = contactToEdit.Id;
var result = Send(new ContactEdit.Query { Id = selectedContactId });
result.Id.ShouldEqual(selectedContactId);
result.Name.ShouldEqual(contactToEdit.Name);
result.Email.ShouldEqual(contactToEdit.Email);
result.Phone.ShouldEqual(contactToEdit.Phone);
}
...
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment