コード例 #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
        }
コード例 #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)));
        }
コード例 #3
0
ファイル: Article.cs プロジェクト: tafkas1973/Office4U.Poc
 public void AddPhoto(ArticlePhoto photo)
 {
     Photos.Add(photo);
 }