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 }
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))); }
public void AddPhoto(ArticlePhoto photo) { Photos.Add(photo); }