Beispiel #1
0
        public void VoteEnsureICanLogSupport()
        {
            //Arrange
            Vote vote = new Vote();

            //Act
            vote.LogPublicSupport(true);

            //Assert
            Assert.AreEqual("For", vote.support);
        }
Beispiel #2
0
 private Vote SetVote(string dis, string vid, bool _bool, int import = 5)
 {
     dis = san(dis);
     Vote vote = new Vote();
     vote.District = dis;
     vote.video_id = vid;
     vote.LogPublicSupport(_bool);
     vote.importance = import;
     context.Votes.Add(vote);
     return vote;
 }