Created
December 16, 2013 00:13
-
-
Save KyleGobel/7980226 to your computer and use it in GitHub Desktop.
This file contains 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 Xunit; | |
public class MyTests | |
{ | |
[Fact] //This means this is a test | |
public void TestMyGetMethodWorks() | |
{ | |
var journalService = new JournalService(/* not sure what kinda constructor you have */); | |
var resultJournal = journalService.Get(new JournalServiceRequestDTO { Id = 4; }); | |
//just make sure it's actually returning the journal with Id = 4 | |
Assert.Equal(4, resultJournal.Id); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment