views:

37

answers:

0

Hello,

I'm trying to recreate the following logic using Structuremap.IContainer:

public IReplyParams CreateParams(Interface @interface, string response)
{
    switch (@interface)
    {
        case Interface.InOtherAssetsReply:
            return new ReplyNonFinancialAssetsParams(response, infoOrderDataProvider);
        case Interface.InVehicleReply:
            return new ReplyVehicleParams(response, infoOrderDataProvider);
        default:
            return new InformationReplyParams(response, infoOrderDataProvider);
    }
 }

How can i use IContainer to process this logic.

Thanks.