Created
January 26, 2016 22:56
-
-
Save plioi/d4bf27f5774ea5f7d8a7 to your computer and use it in GitHub Desktop.
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
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