Skip to content

Instantly share code, notes, and snippets.

@KyleGobel
Created December 16, 2013 00:13
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 KyleGobel/7980226 to your computer and use it in GitHub Desktop.
Save KyleGobel/7980226 to your computer and use it in GitHub Desktop.
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