Ejemplo n.º 1
0
        public void Standard()
        {
            var implicitKeyRepo = new EFRepository <TestContext, TestClass>(x => x.Objects);
            var typedKeyRepo    = new EFRepository <TestContext, TestClass, String>(x => x.Objects);

            StandardTests.All(implicitKeyRepo, typedKeyRepo);
        }
Ejemplo n.º 2
0
        public void Standard()
        {
            var implicitKeyRepo = new FileSystemRepository <TestClass>(x => x.ID, new FileSystemOptions <TestClass> {
                FolderPath = "Tests/ImplicitKeyRepositories"
            });
            var typedRepo = new FileSystemRepository <TestClass, String>(x => x.ID, new FileSystemOptions <TestClass> {
                FolderPath = "Tests/TypedKeyRepositories"
            });
            var explicitKeyRepo = new ExplicitKeyFileSystemRepository <TestClass>(new FileSystemOptions <TestClass> {
                FolderPath = "Tests/ExplicitKeyRepositories"
            });

            StandardTests.All(implicitKeyRepo);
        }
Ejemplo n.º 3
0
        public void Standard()
        {
            var implicitKeyRepo = new FileSystemRepository <TestClass>("Test", x => x.ID, new FileSystemOptions <TestClass> {
                FolderPath = "Tests/ImplicitKeyRepositories"
            });
            var gzipRepo = new FileSystemRepository <TestClass>("Test", x => x.ID, new FileSystemOptions <TestClass> {
                FolderPath = "Tests/ImplicitKeyRepositories", StreamGenerator = new GZipStreamGenerator(), FileExtension = ".txt.gz"
            });
            var explicitKeyRepo = new ExplicitKeyFileSystemRepository <TestClass>("Test", new FileSystemOptions <TestClass> {
                FolderPath = "Tests/ExplicitKeyRepositories"
            });

            StandardTests.All(implicitKeyRepo, null, explicitKeyRepo);
            StandardTests.All(gzipRepo);
        }
Ejemplo n.º 4
0
        public void Standard()
        {
            var implicitKeyRepo = new FileSystemRepository <TestClass>("Test", x => x.ID, new FileSystemOptions <TestClass> {
                FolderPath = Path.Combine(basePath, "Tests/ImplicitKeyRepositories")
            });
            var gzipRepo = new FileSystemRepository <TestClass>("Test", x => x.ID, new FileSystemOptions <TestClass> {
                FolderPath = Path.Combine(basePath, "Tests/ImplicitKeyRepositories"), StreamGenerator = new GZipStreamGenerator(), FileExtension = ".txt.gz"
            });
            var explicitKeyRepo = new ExplicitKeyFileSystemRepository <TestClass>("Test", new FileSystemOptions <TestClass> {
                FolderPath = Path.Combine(basePath, "Tests/ExplicitKeyRepositories")
            });
            var multipleFileRepo = new FileSystemRepository <TestClass>("Test", x => x.ID, new FileSystemOptions <TestClass> {
                FolderPath = Path.Combine(basePath, "Tests/ImplicitKeyRepositories"), FileStorageType = FileStorageType.FilePerObject
            });

            StandardTests.All(implicitKeyRepo, null, explicitKeyRepo);
            StandardTests.All(gzipRepo);
            StandardTests.All(multipleFileRepo);
        }
Ejemplo n.º 5
0
 public void Standard()
 {
     StandardTests.All(TestObjects(), null, ExplicitKeyTestObjects());
 }