public static string GetDbNameByConvention(string domain = "") { var approved = GetSerializer(); var convention = new ByConvention(Log.Logger, approved); string or = GetDomain(); return(convention.GetTenantName(domain, or)); }
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); }