// Clean up function to delete all collections and indexes after testing is complete
        public void Dispose()
        {
            CommandLineRunner _manageIndexes = new CommandLineRunner()
            {
                VoidMain = ManageIndexes.Main,
                Command  = "dotnet run"
            };

            DeleteCollection("users").Wait();
            DeleteCollection("cities/SF/neighborhoods").Wait();
            DeleteCollection("cities").Wait();
            DeleteCollection("data").Wait();
            _manageIndexes.Run("delete-indexes", Environment.GetEnvironmentVariable("FIRESTORE_PROJECT_ID"));
        }
        // Clean up function to delete all collections and indexes after testing is complete
        public void Dispose()
        {
            CommandLineRunner _manageIndexes = new CommandLineRunner()
            {
                VoidMain = ManageIndexes.Main,
                Command  = "dotnet run"
            };

            ConsoleOutput RunManageIndexes(params string[] args)
            {
                return(_manageIndexes.Run(args));
            }

            DeleteCollection("users").Wait();
            DeleteCollection("cities/SF/neighborhoods").Wait();
            DeleteCollection("cities").Wait();
            DeleteCollection("data").Wait();
            var manageIndexesOutput = RunManageIndexes("delete-indexes", Environment.GetEnvironmentVariable("FIRESTORE_PROJECT_ID"));
        }
示例#3
0
 public CommonTests(TestFixture fixture)
 {
     _projectId       = fixture.ProjectId;
     _cloudMonitoring = fixture.CloudMonitoring;
     _fixture         = fixture;
 }