public void GetArticalFromEmptyInventoryTest() { var supplier = new Supplier1(); var articleFromInventory = supplier.GetArticle(23); Assert.Null(articleFromInventory); }
public void GetArticleWithNoExestingIdTest() { var article = new Article { ID = 2 }; var supplier = new Supplier1(); supplier.AddArticle(article); var articleFromInventory = supplier.GetArticle(23); Assert.Null(articleFromInventory); }
public void GetArticleTest() { var article = new Article { ID = 2 }; var supplier = new Supplier1(); supplier.AddArticle(article); var articleFromInventory = supplier.GetArticle(article.ID); Assert.Equal(articleFromInventory, article); }