﻿using System;
using System.Threading.Tasks;
using Nimbus.Handlers;
using Nimbus.UnitTests.DispatcherTests.MessageContracts;

namespace Nimbus.UnitTests.DispatcherTests.Handlers
{
    public class ExceptingRequestHandler : IHandleRequest<ExceptingRequest, ExceptingResponse>
    {
        public Task<ExceptingResponse> Handle(ExceptingRequest request)
        {
            throw new Exception("Ruh roh");
        }
    }
}