コード例 #1
0
        public void It_should_unpack_and_install_ravendb()
        {
            if (Directory.Exists(RavenDBInstaller.RavenInstallPath))
            {
                Directory.Delete(RavenDBInstaller.RavenInstallPath, true);
            }



            Configure.With()
            .DefineEndpointName(() => "Test")
            .DefaultBuilder()
            .RavenPersistence();

            var installer = new RavenDBInstaller() as INeedToInstallInfrastructure;


            installer.Install(Thread.CurrentPrincipal.Identity as WindowsIdentity);
        }
コード例 #2
0
        public void It_should_unpack_and_install_ravendb()
        {
            var installPath = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.ProgramFiles), "NServiceBus.Persistence");

            if (Directory.Exists(installPath))
            {
                Directory.Delete(installPath, true);
            }



            Configure.With()
            .DefineEndpointName(() => "Test")
            .DefaultBuilder()
            .RavenPersistence();

            var installer = new RavenDBInstaller() as INeedToInstallInfrastructure;


            installer.Install(Thread.CurrentPrincipal.Identity as WindowsIdentity);
        }