public MongoConfiguration(string pathToMongoDExe)
 {
     this.mongoServer = new MongoTestServer(TcpPortUtility.GetFreeTcpPort(), pathToMongoDExe);
     this.MongoClient = mongoServer.Database.Client;
 }
        public void AddWebService <TStartup>() where TStartup : class
        {
            var baseUri = new Uri($"http://localhost:{TcpPortUtility.GetFreeTcpPort()}");

            this.webServices.Add(typeof(TStartup), ResourceWebService.Create <TStartup>(baseUri));
        }