public void UseShopService() { try { var articles = _shopService.GetArticles(null); } catch (Exception ex) { _logger.LogWarning(ex, "Couldn't get articles"); } try { var article = new Article(); article.Name = "MyArticle"; article.Price = 2.33; article.ArticleRef = Guid.NewGuid(); var myRef = Guid.NewGuid(); _shopService.AddArticleToTheBasket(article, 3, myRef); var basket = _shopService.GetBasket(myRef); _shopService.PlaceOrder(basket, myRef); } catch (Exception ex) { _logger.LogWarning(ex, "Order failed"); } }