示例#1
0
        public void BallotRequestDeniedTest()
        {
            var cmd = new BallotRequestDeniedCommand(Manager.Address, new VoterNumber(0), VoterStatus.NotSeenToday, VoterStatus.ActiveVoter);

            Assert.That(cmd.Sender.Equals(Manager.Address));
            cmd.Execute(Station);
            Assert.That(!((TestUi)Manager.UI).HandOutBallot);
            cmd = new BallotRequestDeniedCommand(Station.Address, new VoterNumber(0), VoterStatus.NotSeenToday, VoterStatus.ActiveVoter);
            cmd.Execute(Station);
        }
        public void BallotRequestDeniedTest()
        {
            var cmd = new BallotRequestDeniedCommand(Manager.Address);

            Assert.That(cmd.Sender.Equals(Manager.Address));
            cmd.Execute(Station);
            Assert.That(!((TestUi)Manager.UI).HandOutBallot);
            cmd = new BallotRequestDeniedCommand(Station.Address);
            cmd.Execute(Station);
        }