public void CanViewAChapter(string id, string name, string description) { _chapter = new Domain.Chapter { Id = id, Name = name, Description = description }; var viewChapter = new ViewChapter(this); dynamic response = viewChapter.Execute(new { Id = "asd" }.ToDynamic()); ((string)response.Id).Should().Be(id); ((string)response.Name).Should().Be(name); ((string)response.Description).Should().Be(description); }
public string Save(Domain.Chapter chapter) { _chapters.Add(chapter); return((_chapters.Count - 1).ToString()); }
public string Save(Domain.Chapter chapter) { _lastSavedChapter = chapter; return(_id); }