public void Get_Entry_Details_By_Url() { var entryServices = new EntryServices(new FakeEntryRepository(), new FakeAuthorRepository(), new FakeCommentRepository(), new FakeImageRepository()); var entry = entryServices.GetEntryByUrl("test-entry-1"); entry.EntryID.ShouldEqual(1); entry.Title.ShouldEqual("Test Entry 1"); entry.Comments[1].CommentID.ShouldEqual(2); }
public void Get_Entry_Details_By_Id() { var entryServices = new EntryServices(new FakeEntryRepository(), new FakeAuthorRepository(), new FakeCommentRepository(), new FakeImageRepository()); var entry = entryServices.GetEntry(1); entry.EntryID.ShouldEqual(1); entry.Title.ShouldEqual("Test Entry 1"); entry.Comments.ShouldEqual(null); }