using System; using Infrastructure; using log4net; using Microsoft.Extensions.DependencyInjection; using NUnit.Framework; namespace OpenAuth.App.Test { class TestDbExtension :TestBase { private ILog log = LogManager.GetLogger(typeof(TestDbExtension)); [Test] public void TestGetProperties() { var app = _autofacServiceProvider.GetService(); var result = app.GetProperties("Category"); Console.WriteLine(JsonHelper.Instance.Serialize(result)); } [Test] public void GetDbEntityNames() { var app = _autofacServiceProvider.GetService(); var result = app.GetDbEntityNames(); Console.WriteLine(JsonHelper.Instance.Serialize(result)); } [Test] public void TestGetTables() { var app = _autofacServiceProvider.GetService(); var result = app.GetDbTableStructure("application"); Console.WriteLine(JsonHelper.Instance.Serialize(result)); } } }