Exemplo n.º 1
0
        public void SetUp()
        {
            theContext = new SimpleTenantContext
            {
                CurrentTenant = Guid.NewGuid()
            };

            thePolicy = new ByTenantStoragePolicy(theContext);
        }
Exemplo n.º 2
0
        public void SetUp()
        {
            inner      = new EntityStorage <TrackedEntity>(new InMemoryPersistor());
            theContext = new SimpleTenantContext
            {
                CurrentTenant = Guid.NewGuid()
            };

            theStorage = new ByTenantEntityStorage <TrackedEntity>(inner, theContext);
        }
Exemplo n.º 3
0
        public void SetUp()
        {
            var container = new Container(new InMemoryPersistenceRegistry());

            theContext = new SimpleTenantContext {
                CurrentTenant = Guid.NewGuid()
            };
            container.Inject <ITenantContext>(theContext);

            thePersistor = container.GetInstance <IPersistor>();

            theRepository = container.GetInstance <IEntityRepository>();
        }
Exemplo n.º 4
0
 public void Execute <T>(Guid tenantId, Action <T> action) where T : class
 {
     Execute(SimpleTenantContext.ArgumentsForTenant(tenantId), action);
 }