Esempio n. 1
0
        static BookPoster()
        {
            TitleProperty           = DomainProperty.Register <string, BookPoster>("Title");
            ProviderCompanyProperty = DomainProperty.Register <string, BookPoster>("ProviderCompany");

            Empty = new BookPosterEmpty();
        }
Esempio n. 2
0
        private static void AssertBookPoster(Book book, BookPoster poster, IDbConnection conn)
        {
            var data = conn.QueryFirstOrDefault("select * from BookPoster where RootId=@RootId and id=@id", new { RootId = book.Id, Id = poster.Id });

            if (poster.IsEmpty())
            {
                Assert.IsNull(data);
                return;
            }
            Assert.AreEqual(data.Title, poster.Title);
            Assert.AreEqual(data.ProviderCompany, poster.ProviderCompany);
        }
Esempio n. 3
0
 public void AddPoster(BookPoster poster)
 {
     _Posters.Add(poster);
 }