Raven.Bundles.Tests.Versioning.Versioning C# (CSharp) Method

Versioning() public method

public Versioning ( ) : System
return System
        public Versioning()
        {
            path = Path.GetDirectoryName(Assembly.GetAssembly(typeof (Versioning)).CodeBase);
            path = Path.Combine(path, "TestDb").Substring(6);
            if (Directory.Exists(path))
                Directory.Delete(path, true);
            ravenDbServer = new RavenDbServer(
                new RavenConfiguration
                {
                    Port = 58080,
                    DataDirectory = path,
                    RunInUnreliableYetFastModeThatIsNotSuitableForProduction = true,
                    Catalog =
                    {
                        Catalogs =
                    {
                        new AssemblyCatalog(typeof (VersioningPutTrigger).Assembly)
                    }
                    },
                    Settings =
                    {
                        {"Raven/Versioning/MaxRevisions", "5"},
                        {"Raven/Versioning/Exclude", "Users;Comments;"}
                    }
                });
            documentStore = new DocumentStore
            {
                Url = "http://localhost:58080"
            };
            documentStore.Initialize();
        }