Exemplo n.º 1
0
        public void Create_SetPhoto_ThrowsNoExceptions()
        {
            //Arrange
            var article = Article.Create("new code", "new name", "sup id", "sup ref", 123.45M, "ST");

            //Act
            article.AddPhoto(ArticlePhoto.Create("www.google.be", true));

            //Assert
        }
Exemplo n.º 2
0
        public void ArticlePhoto_Create_ReturnsArticlePhoto()
        {
            //Arrange

            //Act
            var result = ArticlePhoto.Create("www.google.be", true);

            //Assert
            Assert.That(result, Is.Not.Null);
            Assert.That(result.GetType(), Is.EqualTo(typeof(ArticlePhoto)));
        }
Exemplo n.º 3
0
 public void AddPhoto(ArticlePhoto photo)
 {
     Photos.Add(photo);
 }