Пример #1
0
        public void Can_find_host_value()
        {
            var tenant = new Tenant
            {
                Hosts = "yourtenant.com, www.yourtenant.com, "
            };

            _tenantService.ContainsHostValue(tenant, null).ShouldEqual(false);
            _tenantService.ContainsHostValue(tenant, "").ShouldEqual(false);
            _tenantService.ContainsHostValue(tenant, "tenant.com").ShouldEqual(false);
            _tenantService.ContainsHostValue(tenant, "yourtenant.com").ShouldEqual(true);
            _tenantService.ContainsHostValue(tenant, "yourteNanT.com").ShouldEqual(true);
            _tenantService.ContainsHostValue(tenant, "www.yourtenant.com").ShouldEqual(true);
        }