public void Should_Be_Able_To_Calculate_Results_Of_Survey_With_One_Sided_Outcome()
        {
            const string topic = "Tabs or spaces?";
            const int    numberOfRespondents = 1000;
            const string respondentType      = "Developers";

            var survey = new Survey(null, NonEmptyString.Create(topic), numberOfRespondents, NonEmptyString.Create(respondentType));

            survey.AddSurveyOption(NonEmptyString.Create("Tabs"));
            survey.AddSurveyOption(NonEmptyString.Create("Spaces"));

            survey.CalculateOneSidedOutcome();

            Assert.Equal(numberOfRespondents, survey.Options.Max(option => option.NumberOfVotes));
        }
        public void GivenSurveyWithOptions_WhenCalculatingOneSidedOutcome_ThenOneOptionShouldReceiveAllVotes()
        {
            const string topic = "Tabs or spaces?";
            const int    numberOfRespondents = 1000;
            const string respondentType      = "Developers";

            var survey = new Survey(_testUser, NonEmptyString.Create(topic), numberOfRespondents,
                                    NonEmptyString.Create(respondentType));

            survey.AddSurveyOption(NonEmptyString.Create("Tabs"));
            survey.AddSurveyOption(NonEmptyString.Create("Spaces"));

            survey.CalculateOneSidedOutcome();

            survey.Options.Max(option => option.NumberOfVotes).Should().Be(numberOfRespondents);
        }