public Faq(AskAQuestionCategory category, string question, string answer, string keywords, string customKeywords) { SetCategory(category); SetQuestion(question); SetAnswer(answer); SetKeyword(keywords); SetCustomKeyword(customKeywords); }
/// <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; }
public void SetUp() { _category = new AskAQuestionCategory() { Id = 1, IsEnabled = true, Name = "Test Category" }; }