public async Task GetJoinPokerSessionInfoCommandHandler_ReturnsInfo_OnRetrospectiveFound()
        {
            // Given
            var retrospective = new Session {
                Title             = "Hello",
                CreationTimestamp = DateTimeOffset.Now,
                HashedPassphrase  = "hello"
            };
            string sessionId = retrospective.UrlId.StringId;

            this.Context.Sessions.Add(retrospective);
            await this.Context.SaveChangesAsync(CancellationToken.None);

            var handler = new GetJoinPokerSessionInfoQueryHandler(this.Context, new NullLogger <GetJoinPokerSessionInfoQueryHandler>());
            var command = new GetJoinPokerSessionInfoQuery {
                SessionId = sessionId
            };

            // When
            var result = await handler.Handle(command, CancellationToken.None);

            // Then
            Assert.That(result, Is.Not.Null);
            Assert.That(result.Title, Is.EqualTo("Hello"));
            Assert.That(result.IsStarted, Is.False);
            Assert.That(result.IsFinished, Is.False);
            Assert.That(result.NeedsParticipantPassphrase, Is.True);
        }
        public async Task GetJoinPokerSessionInfoCommandHandler_ReturnsNull_OnRetrospectiveNotFound()
        {
            // Given
            string sessionId = "whatever-whatever";
            var    handler   = new GetJoinPokerSessionInfoQueryHandler(this.Context, new NullLogger <GetJoinPokerSessionInfoQueryHandler>());
            var    command   = new GetJoinPokerSessionInfoQuery {
                SessionId = sessionId
            };

            // When
            var result = await handler.Handle(command, CancellationToken.None);

            // Then
            Assert.That(result, Is.Null);
        }