Ejemplo n.º 1
0
        public void CategoryName()
        {
            //Arrange
            const string categoryName = "Some category name";

            //Act
            var question = new UnansweredQuestionDto()
            {
                CategoryName = categoryName
            };

            //Assert
            Assert.AreEqual(categoryName, question.CategoryName);
        }
Ejemplo n.º 2
0
        public void DisplayName()
        {
            //Arrange
            const string displayName = "Some Display Name";

            //Act
            var question = new UnansweredQuestionDto()
            {
                DisplayName = displayName
            };

            //Assert
            Assert.AreEqual(displayName, question.DisplayName);
        }
Ejemplo n.º 3
0
        public void QuestionText()
        {
            //Arrange
            const string questionText = "Some question text";

            //Act
            var question = new UnansweredQuestionDto()
            {
                QuestionText = questionText
            };

            //Assert
            Assert.AreEqual(questionText, question.QuestionText);
        }
Ejemplo n.º 4
0
        public void DateCreated()
        {
            //Arrange
            var dateCreated = DateTime.Now;

            //Act
            var question = new UnansweredQuestionDto
            {
                DateCreated = dateCreated
            };

            //Assert
            Assert.AreEqual(dateCreated, question.DateCreated);
        }
Ejemplo n.º 5
0
        public void CategoryId()
        {
            //Arrange
            const int categoryId = MaxValue;

            //Act
            var question = new UnansweredQuestionDto()
            {
                CategoryId = categoryId
            };


            //Assert
            Assert.AreEqual(categoryId, question.CategoryId);
        }
Ejemplo n.º 6
0
        public void Id()
        {
            //Arrange
            const int id = 1976;

            //Act
            var question = new UnansweredQuestionDto()
            {
                Id = id
            };


            //Assert
            Assert.AreEqual(id, question.Id);
        }