예제 #1
0
            public static FirmaSession Create()
            {
                var tenant = TestTenant.Get();
                var person = TestPerson.Create(tenant);

                var firmaSession = new FirmaSession(null, person);

                return(firmaSession);
            }
        public void Can_get_tenant_instance()
        {
            HttpContext httpContext = new DefaultHttpContext();

            var tenant = new TestTenant { Id = "1" };
            httpContext.SetTenantContext(new TenantContext<TestTenant>(tenant));

            Assert.Same(tenant, httpContext.GetTenant<TestTenant>());
        }
        public void Can_get_tenant_instance()
        {
            HttpContext httpContext = new DefaultHttpContext();

            var tenant = new TestTenant {
                Id = "1"
            };

            httpContext.SetTenantContext(new TenantContext <TestTenant>(tenant));

            Assert.Same(tenant, httpContext.GetTenant <TestTenant>());
        }
예제 #4
0
 public void ConfigurePerTenantServices(IServiceCollection services, TestTenant tenant, TestTenant tenant1)
 {
 }
예제 #5
0
 public void ConfigurePerTenantIntegrationTestServices(IServiceCollection services, TestTenant tenant)
 {
 }
예제 #6
0
 public void ConfigurePerTenantServices(IServiceCollection services, TestTenant tenant, MultiTenancyConfig <TestTenant> config)
 {
 }