Пример #1
0
        public void GetArticleById_Success()
        {
            DatabaseDriver databaseDriver = new DatabaseDriver();
            Logger         logger         = new Logger();
            ShopService    shopService    = new ShopService(databaseDriver, logger, new List <ISupplier>());

            Article article = new Article()
            {
                ID            = 10,
                NameOfArticle = "Silly hats",
                ArticlePrice  = 100
            };

            databaseDriver.SaveArticle(article);

            Assert.AreEqual(10, shopService.GetArticleById(10).ID);
        }