Exemple #1
0
        public void SetUp()
        {
            this.telemetryClient = TelemetryMock.InitializeMockTelemetryClient();
            MongoClient client = new MongoClient(Settings.ConnectionString);

            client.DropDatabase(Settings.DatabaseName);

            RepositoryDatabase database = new RepositoryDatabase(Settings);
            RepositoryInfo     result   = database.Create(this.testRepoOne);

            Assert.IsNotNull(result);
            RepositoryInfo result2 = database.Create(this.testRepoTwo);

            Assert.IsNotNull(result2);
        }
Exemple #2
0
        public void SetUp()
        {
            MongoClient client = new MongoClient(Settings.ConnectionString);

            client.DropDatabase(Settings.DatabaseName);

            RepositoryDatabase database = new RepositoryDatabase(Settings);
            RepositoryInfo     result   = database.Create(this.snapshotRepoOne);

            Assert.IsNotNull(result);
            RepositoryInfo result2 = database.Create(this.snapshotRepoTwo);

            Assert.IsNotNull(result2);
            RepositoryInfo result3 = database.Create(this.defaultRepoOne);

            Assert.IsNotNull(result3);
        }
Exemple #3
0
        public void SetUp()
        {
            MongoClient client = new MongoClient(Settings.ConnectionString);

            client.DropDatabase(Settings.DatabaseName);

            RepositoryDatabase database = new RepositoryDatabase(Settings);
            RepositoryInfo     result   = database.Create(this.orgOne_RepoOne);

            Assert.IsNotNull(result);
            this.SeedProjects(database, result).GetAwaiter().GetResult();

            result = database.Create(this.orgOne_RepoTwo);
            Assert.IsNotNull(result);
            this.SeedProjects(database, result).GetAwaiter().GetResult();

            result = database.Create(this.orgTwo_RepoOne);
            Assert.IsNotNull(result);
            this.SeedProjects(database, result).GetAwaiter().GetResult();

            result = database.Create(this.orgTwo_RepoTwo);
            Assert.IsNotNull(result);
            this.SeedProjects(database, result).GetAwaiter().GetResult();

            result = database.Create(this.orgThree_RepoOne);
            Assert.IsNotNull(result);
            this.SeedProjects(database, result).GetAwaiter().GetResult();

            result = database.Create(this.orgThree_RepoTwo);
            Assert.IsNotNull(result);
            this.SeedProjects(database, result).GetAwaiter().GetResult();

            result = database.Create(this.orgThree_RepoThree);
            Assert.IsNotNull(result);
            this.SeedProjects(database, result).GetAwaiter().GetResult();
        }