private PostJournalResponse GivenOneJournal(string dateTime, string description) { return _postJournal.Execute(new PostJournalRequest { PostingDateTime = DateTime.Parse(dateTime), Description = description, Entries = new PostJournalRequest.Entry[] { } }); }
public void CanPostJournal( string date, string description, string expectedDate, string expectedDescription ) { var postJournal = new PostJournal(this); postJournal.Execute(new PostJournalRequest { PostingDateTime = DateTime.Parse(date), Description = description }); _savedJournal.PostingDate.Should().Be(DateTime.Parse(expectedDate)); _savedJournal.Description.Should().Be(expectedDescription); }