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