public static Uri GetUriFor(ITransportFactory fac) { var asbAccountDetails = new AccountDetails(); return new Dictionary<Type, Uri> { { typeof (TransportFactoryImpl), asbAccountDetails.WithApplication("TransportSpecs").BuildUri() }, { typeof(MsmqTransportFactory), new Uri(fac.Scheme + "://localhost/TransportSpecs") }, { typeof(RabbitMqTransportFactory), new Uri(fac.Scheme + "://localhost/TransportSpecs") }, { typeof(LoopbackTransportFactory), new Uri(fac.Scheme + "://localhost/TransportSpecs")} } [fac.GetType()]; }