private static IDependencyResolver CreateControllerFactory()
 {
     IChirpyRRepository repository = (IChirpyRRepository)Activator.CreateInstance(Type.GetType(
             "ChirpyR.Data.Repository.ChirpyRSqlRepository, ChirpyR.Data", true),
             new object [] { "ChirpyRConnection", "dbo" });
     var resolver = new WebApiDependencyResolver(repository);
     return resolver;
 }
        private static IDependencyResolver CreateControllerFactory()
        {
            IChirpyRRepository repository = (IChirpyRRepository)Activator.CreateInstance(Type.GetType(
                                                                                             "ChirpyR.Data.Repository.ChirpyRSqlRepository, ChirpyR.Data", true),
                                                                                         new object [] { "ChirpyRConnection", "dbo" });
            var resolver = new WebApiDependencyResolver(repository);

            return(resolver);
        }