コード例 #1
0
ファイル: DgmlTest.cs プロジェクト: zatanboy/EFCorePowerTools
        public void BuildSample1()
        {
            // Act
            var builder = new DgmlBuilder.DgmlBuilder();
            var result  = builder.Build(ReadAllText("Aw2014Person.txt"), "test", _template);

            // Assert
            Assert.AreNotEqual(result, null);

            File.WriteAllText(Path.Combine(TestContext.CurrentContext.TestDirectory, @"Aw2014Person.dgml"), result, Encoding.UTF8);
        }
コード例 #2
0
ファイル: DgmlTest.cs プロジェクト: tfreitasleal/SqlCeToolbox
        public void BuildNorthwind()
        {
            // Act
            var builder = new DgmlBuilder.DgmlBuilder();
            var result  = builder.Build(ReadAllText("Northwind.txt"), "test", _template);

            // Assert
            Assert.AreNotEqual(result, null);

            File.WriteAllText(@"C:\temp\northwind.dgml", result, Encoding.UTF8);
        }
コード例 #3
0
        public void BuildSingleNav()
        {
            // Act
            var builder = new DgmlBuilder.DgmlBuilder();
            var result  = builder.Build(File.ReadAllText("SingleNav.txt"), "test", _template);

            // Assert
            Assert.AreNotEqual(result, null);

            File.WriteAllText(@"C:\temp\singlenav.dgml", result, Encoding.UTF8);
        }
コード例 #4
0
ファイル: DgmlTest.cs プロジェクト: tfreitasleal/SqlCeToolbox
        public void BuildSample1()
        {
            // Act
            var builder = new DgmlBuilder.DgmlBuilder();
            var result  = builder.Build(ReadAllText("Aw2014Person.txt"), "test", _template);

            // Assert
            Assert.AreNotEqual(result, null);

            File.WriteAllText(@"C:\temp\Aw2014Person.dgml", result, Encoding.UTF8);
        }
コード例 #5
0
        public void BuildIdentity()
        {
            // Act
            var builder = new DgmlBuilder.DgmlBuilder();
            var result  = builder.Build(ReadAllText("Identity.txt"), "test", _template);

            // Assert
            Assert.AreNotEqual(result, null);

            File.WriteAllText(@"Identity.dgml", result, Encoding.UTF8);
        }