예제 #1
0
 public void StartNewSession_ShouldReturnsSessionid()
 {
     service.StartNewSession(TestHelpers.GetTestUser(123));
     service.ScrumPokerSessions.Count().Should().Be(1);
     service.ScrumPokerSessions.First().MasterUser.ChatId.Should().Be(123);
 }
예제 #2
0
 public void ConnectWithWrongId_InformsUser()
 {
     service.ConnectToSession(TestHelpers.GetTestUser(1), 1);
     messageSender.Received().NoSessionFound(Arg.Any <PokerUser>(), 1);
 }
예제 #3
0
 public void CancelPoker_withoutPokerSession()
 {
     service.StartNewSession(TestHelpers.GetTestUser(123));
     service.CancelPoker(TestHelpers.GetTestUser(123));
     this.messageSender.Received().NoPokerRunning(Arg.Any <PokerUser>());
 }
예제 #4
0
 public void CancelPoker_withoutSession()
 {
     service.CancelPoker(TestHelpers.GetTestUser(123));
     this.messageSender.Received().NoSessionForUser(Arg.Any <PokerUser>());
 }
예제 #5
0
 public void SendConnections_withoutSessions()
 {
     service.SendConnections(TestHelpers.GetTestUser(3));
     this.messageSender.Received().NoRunningSession(Arg.Any <PokerUser>());
 }
예제 #6
0
 public void Estimation_WithoutSession()
 {
     service.Estimate(TestHelpers.GetTestUser(1), 2);
     this.messageSender.NoSessionForUser(Arg.Any <PokerUser>());
 }
예제 #7
0
 public void StartPoker_WithoutSession()
 {
     service.StartPoker(TestHelpers.GetTestUser(1), "");
     this.messageSender.Received().NoSessionForUser(Arg.Any <PokerUser>());
 }