コード例 #1
0
        public async Task NullResultFalse()
        {
            var command = new UpdateResultCommand(null);
            var handler = new UpdateResultHandler(_mock.Object);

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

            Assert.IsFalse(result);
        }
コード例 #2
0
        public async Task HasId_True()
        {
            var command = new UpdateResultCommand(new QuizResult()
            {
                _id = "1"
            });
            var handler = new UpdateResultHandler(_mock.Object);

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

            Assert.IsTrue(result);
        }