Exemplo n.º 1
0
        public void CreateApplianceSurvey()
        {
            //Arrange
            var sut = new SurveyCreator(new ApplianceSurveyBuilder());

            //Act
            sut.CreateSurvey();
            var survey = sut.GetSurvey();

            //Assert
            Assert.AreEqual(DisplayPosition.AfterAddPartAddition, survey.DisplayPosition);
            Assert.AreEqual(4, survey.Questions.Count);
            Assert.IsFalse(survey.SignatureRequired);
        }
Exemplo n.º 2
0
        public void CreateMHSSurvey()
        {
            //Arrange
            var sut = new SurveyCreator(new MHSSurveyBuilder());

            //Act
            sut.CreateSurvey();
            var survey = sut.GetSurvey();

            //Assert
            Assert.AreEqual(DisplayPosition.AfterAddDefect, survey.DisplayPosition);
            Assert.AreEqual(3, survey.Questions.Count);
            Assert.IsTrue(survey.SignatureRequired);
        }