コード例 #1
0
        public void SetUp()
        {
            theContext = new SimpleTenantContext
            {
                CurrentTenant = Guid.NewGuid()
            };

            thePolicy = new ByTenantStoragePolicy(theContext);
        }
コード例 #2
0
        public void SetUp()
        {
            inner = new EntityStorage<TrackedEntity>(new InMemoryPersistor());
            theContext = new SimpleTenantContext
            {
                CurrentTenant = Guid.NewGuid()
            };

            theStorage = new ByTenantEntityStorage<TrackedEntity>(inner, theContext);
        }
コード例 #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>();
        }