public void Handle_GivenInvalidId_ThrowsException()
        {
            var command = new DeleteQRCodeCommand
            {
                AnimalId = 99
            };

            var handler = new DeleteQRCodeCommand.DeleteQRCodeCommandHandler(Context);

            Should.ThrowAsync <NotFoundException>(() => handler.Handle(command, CancellationToken.None));
        }
        public async Task Handle_GivenValidId_ShouldRemovePersistedQRCode()
        {
            var command = new DeleteQRCodeCommand
            {
                AnimalId = 1
            };

            var handler = new DeleteQRCodeCommand.DeleteQRCodeCommandHandler(Context);

            await handler.Handle(command, CancellationToken.None);

            var entity = Context.QRCodes.Find(command.AnimalId);

            entity.ShouldBeNull();
        }