Пример #1
0
        public async Task Columns_Db2Dto_Match()
        {
            this.TestFixture.ReopenTransaction();
            List <string> compareProblems = await HelperDatabaseTests.CompareDatabaseWithContract <DbPoco>(this.TestFixture);

            foreach (string problem in compareProblems)
            {
                this.TestFixture.WriteOutput(problem);
            }

            compareProblems.Should().BeEmpty("DB and Data contract should match, but there are {0} problems found with that. See Standard output", compareProblems.Count);
        }
Пример #2
0
        public async Task Columns_Db2Dto_Match()
        {
            this.TestFixture.ReopenTransaction();
            var exceptPocoProperties = new HashSet <string> {
                "NotInDatabase"
            };
            List <string> compareProblems = await HelperDatabaseTests.CompareDatabaseWithContract <TestColumnTypes>(this.TestFixture, exceptPocoProperties : exceptPocoProperties);

            foreach (string problem in compareProblems)
            {
                this.TestFixture.WriteOutput(problem);
            }

            compareProblems.Should().BeEmpty("DB and Data contract should match, but there are {0} problems found with that. See Standard output", compareProblems.Count);
        }