public void NonExistingFolderShouldThrowException()
            {
                //Arrange
                var clientConfiguration = new Klientkonfigurasjon(Miljø.FunksjoneltTestmiljø);

                //Act
                Assert.Throws<DirectoryNotFoundException>(() =>
                    clientConfiguration.AktiverLagringAvDokumentpakkeTilDisk(@"c:\nonexistentfolder\theoddsofthisexistingis\extremelylow")
                    );
            }
예제 #2
0
            public void NonExistingFolderShouldThrowException()
            {
                //Arrange
                var clientConfiguration = new Klientkonfigurasjon(Miljø.FunksjoneltTestmiljø);

                //Act
                Assert.Throws <DirectoryNotFoundException>(() =>
                                                           clientConfiguration.AktiverLagringAvDokumentpakkeTilDisk(@"c:\nonexistentfolder\theoddsofthisexistingis\extremelylow")
                                                           );
            }
            public void AddsDocumentBundleToDiskProcessor()
            {
                //Arrange
                var clientConfiguration = new Klientkonfigurasjon(Miljø.FunksjoneltTestmiljø);

                //Act
                clientConfiguration.AktiverLagringAvDokumentpakkeTilDisk(Path.GetTempPath());

                //Assert
                Assert.True(clientConfiguration.Dokumentpakkeprosessorer.Any(p => p.GetType() == typeof (LagreDokumentpakkeTilDiskProsessor)));
            }
예제 #4
0
            public void AddsDocumentBundleToDiskProcessor()
            {
                //Arrange
                var clientConfiguration = new Klientkonfigurasjon(Miljø.FunksjoneltTestmiljø);

                //Act
                clientConfiguration.AktiverLagringAvDokumentpakkeTilDisk(Path.GetTempPath());

                //Assert
                Assert.True(clientConfiguration.Dokumentpakkeprosessorer.Any(p => p.GetType() == typeof(LagreDokumentpakkeTilDiskProsessor)));
            }
            public void ExistingFolderShouldNotThrowException()
            {
                //Arrange
                var clientConfiguration = new Klientkonfigurasjon(Miljø.FunksjoneltTestmiljø);
                var path = Path.GetTempPath();

                //Act
                clientConfiguration.AktiverLagringAvDokumentpakkeTilDisk(path);

                //Assert
                Assert.True(clientConfiguration.Dokumentpakkeprosessorer.Any(p => p.GetType() == typeof (LagreDokumentpakkeTilDiskProsessor)));
            }
예제 #6
0
            public void ExistingFolderShouldNotThrowException()
            {
                //Arrange
                var clientConfiguration = new Klientkonfigurasjon(Miljø.FunksjoneltTestmiljø);
                var path = Path.GetTempPath();

                //Act
                clientConfiguration.AktiverLagringAvDokumentpakkeTilDisk(path);

                //Assert
                Assert.True(clientConfiguration.Dokumentpakkeprosessorer.Any(p => p.GetType() == typeof(LagreDokumentpakkeTilDiskProsessor)));
            }