コード例 #1
0
ファイル: TenantConvention.cs プロジェクト: evisional1/mixerp
        public static string GetDbNameByConvention(string domain = "")
        {
            var    approved   = GetSerializer();
            var    convention = new ByConvention(Log.Logger, approved);
            string or         = GetDomain();

            return(convention.GetTenantName(domain, or));
        }
コード例 #2
0
        public void TestOrConvention(string domain, string or, string expected)
        {
            var logger     = new FakeLogger();
            var serializer = new FakeDomainSerializer();

            var    convention = new ByConvention(logger, serializer);
            string result     = convention.GetTenantName(domain, or);

            Assert.Equal(expected, result);
        }