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); }
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); }