WormholeServices GetWormholeServices()
        {
            var whDiskRepo = new WormholeDiskRepository();
            var whSrv      = new WormholeServices(whDiskRepo);

            return(whSrv);
        }
Exemplo n.º 2
0
        public void RouteDefinitionTest()
        {
            IWormholeRepository db = new WormholeDiskRepository();

            var routes = db.GetRouteDefinitions();

            routes.Should().NotBeNullOrEmpty();
        }
Exemplo n.º 3
0
        public void CreatRepoInstantTest()
        {
            IWormholeRepository db = new WormholeDiskRepository();

            db.Config.Should().NotBeNull();
            db.Config.Version.Should().NotBeNullOrWhiteSpace();
            db.Config.DataDirectory.Should().NotBeNullOrWhiteSpace();
            db.Config.ApiCollection.Should().BeNull();
            Directory.Exists(db.Config.DataDirectory).Should().BeTrue();
            //Directory.Exists(Path.Combine(db.Config.DataDirectory, WormholeDiskRepository.API_DISCOVERY_FILDER)).Should().BeTrue();
        }