Exemplo n.º 1
0
        public void ToStringContainsProgrammer1Name()
        {
            var programmerName = "Joe";
            var session = new PairingSessionImpl(new IntervalFactory(new DateTimeClock()));
            session.Initialize(new Programmer(programmerName), new Programmer("Bob"));
            session.Start();
            session.Stop();

            Assert.That(session.ToString(), Contains.Substring(programmerName));
        }
Exemplo n.º 2
0
        public void PauseStopsCurrentIntervalButDoesntAddANewInterval()
        {
            var session = new PairingSessionImpl(new IntervalFactory(new DateTimeClock()));

            session.Initialize(new Programmer("Joe"), new Programmer("Bob"));
            session.Start();
            session.Pause();

            Assert.That(session.Intervals.Count(), Is.EqualTo(1));
            Assert.That(session.CurrentInterval, Is.Null);
        }
 public UnstartedPairingSession(PairingSessionImpl pairingSession)
 {
     this.pairingSession = pairingSession;
 }
 public PausedPairingSession(PairingSessionImpl pairingSession)
 {
     this.pairingSession = pairingSession;
 }
Exemplo n.º 5
0
 public UnstartedPairingSession(PairingSessionImpl pairingSession)
 {
     this.pairingSession = pairingSession;
 }
Exemplo n.º 6
0
 public RunningPairingSession(PairingSessionImpl pairingSession)
 {
     this.pairingSession = pairingSession;
 }
 public RunningPairingSession(PairingSessionImpl pairingSession)
 {
     this.pairingSession = pairingSession;
 }
 public PausedPairingSession(PairingSessionImpl pairingSession)
 {
     this.pairingSession = pairingSession;
 }