コード例 #1
0
        public void TestQuoteServices_GetQuoteItems()
        {
            this.Response = quoteService.GetQuoteItems(user, _quoteId);
            Assert.That(this.Response.HasError, Is.EqualTo(false));
            List <QuoteItemModel> models = this.Response.Model as List <QuoteItemModel>;

            Assert.That(models.Any(qim => qim.ProjectId == _projectId), Is.EqualTo(true));
            Assert.That(models.Any(qim => qim.QuoteId == _quoteId), Is.EqualTo(true));
            Assert.That(models.Any(qim => qim.Quantity > 0), Is.EqualTo(true));
        }
コード例 #2
0
 public ServiceResponse GetQuoteItems(long?quoteId)
 {
     return(quoteService.GetQuoteItems(this.CurrentUser, quoteId));
 }