Exemplo n.º 1
0
        static Fixture()
        {
            var testServerOptions = new TestServerOptions
            {
                FrameworkVersion = null // user latest, optional
            };

            ConfigureServer(testServerOptions);
        }
Exemplo n.º 2
0
        public void TestDriveConfigureServer()
        {
            #region test_driver_ConfigureServer

            var testServerOptions = new TestServerOptions
            {
                ServerDirectory = "PATH_TO_RAVENDB_SERVER",  // Specify where ravendb server binaries are located (Optional)
                DataDirectory   = "PATH_TO_RAVENDB_DATADIR", // Specify where ravendb data will be placed/located (Optional)
            };

            ConfigureServer(testServerOptions);
            #endregion
        }
Exemplo n.º 3
0
        public void TestDriveConfigureServer()
        {
            #region test_driver_ConfigureServer

            var testServerOptions = new TestServerOptions
            {
                // Looks for the newest version on your machine including 3.1.15 and any newer patches
                // but not major new releases (default is .NET version at time of server release).
                FrameworkVersion = "3.1.15+",

                // Specifies where ravendb server binaries are located (Optional)
                ServerDirectory = "PATH_TO_RAVENDB_SERVER",

                // Specifies where ravendb data will be placed/located (Optional)
                DataDirectory = "PATH_TO_RAVENDB_DATADIR",
            };

            ConfigureServer(testServerOptions);
            #endregion
        }
Exemplo n.º 4
0
 public InMemoryDatabaseHelper(TestServerOptions options)
 {
     ConfigureServer(options);
 }