コード例 #1
0
        public Article Supplay(IArticleReport articleReport)
        {
            Article response = _supplier.SupplyArticle(articleReport);

            if (response == null)
            {
                return(_next.Supplay(articleReport));
            }

            return(response);
        }
コード例 #2
0
ファイル: Supplier.cs プロジェクト: nikolabojkovic/TheShop
        public Article SupplyArticle(IArticleReport articleReport)
        {
            if (ArticleInInventory(articleReport.Id))
            {
                Article article = GetArticle(articleReport.Id);

                if (article.ArticlePrice <= articleReport.MaxExpectedPrice)
                {
                    return(article);
                }
            }

            return(null);
        }
コード例 #3
0
 public Article Supplay(IArticleReport articleReport)
 {
     return(null);
 }