Ejemplo n.º 1
0
        public static string GetDbNameByConvention(string domain = "")
        {
            var    approved   = GetSerializer();
            var    convention = new ByConvention(Log.Logger, approved);
            string or         = GetDomain();

            return(convention.GetTenantName(domain, or));
        }
Ejemplo n.º 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);
        }