Пример #1
0
        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);
        }
Пример #2
0
 public string Save(Domain.Chapter chapter)
 {
     _chapters.Add(chapter);
     return((_chapters.Count - 1).ToString());
 }
Пример #3
0
 public string Save(Domain.Chapter chapter)
 {
     _lastSavedChapter = chapter;
     return(_id);
 }