Exemple #1
0
 public Faq(AskAQuestionCategory category, string question, string answer, string keywords, string customKeywords)
 {
     SetCategory(category);
     SetQuestion(question);
     SetAnswer(answer);
     SetKeyword(keywords);
     SetCustomKeyword(customKeywords);
 }
Exemple #2
0
 /// <summary>
 /// Sets the category.
 /// </summary>
 /// <param name="category">The category.</param>
 public void SetCategory(AskAQuestionCategory category)
 {
     if (category == null)
     {
         throw new ArgumentNullException("category");
     }
     AskAQuestionCategory = category;
 }
Exemple #3
0
 public void SetUp()
 {
     _category = new AskAQuestionCategory() { Id = 1, IsEnabled = true, Name = "Test Category" };
 }