public void TestQuoteServices_GetQuoteListModel(string testValue) { if (testValue == "quoteId") { SearchQuote searchQuote = new SearchQuote(); searchQuote.QuoteId = _quoteId; this.Response = quoteService.GetQuoteListModel(user, searchQuote); Assert.That(Response.HasError, Is.EqualTo(false)); List <QuoteListModel> quoteListModels = Response.Model as List <QuoteListModel>; Assert.That(quoteListModels.Count, Is.EqualTo(1)); Assert.That(quoteListModels.FirstOrDefault().Title, Is.Not.EqualTo(string.Empty)); } else { SearchQuote searchQuote = new SearchQuote(); searchQuote.ProjectId = _projectId; this.Response = quoteService.GetQuoteListModel(user, searchQuote); Assert.That(Response.HasError, Is.EqualTo(false)); List <QuoteListModel> quoteListModels = Response.Model as List <QuoteListModel>; Assert.That(quoteListModels.Count, Is.GreaterThanOrEqualTo(1)); Assert.That(_quoteCount, Is.EqualTo(quoteListModels.Count)); Assert.That(quoteListModels.FirstOrDefault().Title, Is.Not.EqualTo(string.Empty)); } }