﻿using System;

namespace Xero.Bus.Test.Commands
{
    /// <summary>
    /// A basic command used for testing bus error/retry functionality.
    /// </summary>
    /// <remarks>Any message handlers handling this command should throw an exception.</remarks>
    [ToString]
    public class ExceptionThrowingCommand : ICommand
    {
        public ExceptionThrowingCommand() {
	        CommandId = Guid.NewGuid();
        }

	    public Guid CommandId { get; set; }
    }
}