Beispiel #1
0
        public void Context_ContextInit_Success()
        {
            EntityContainer.RegisterEntity <TestEntity3>();

            IContext iContext = VaultContext.GetContext();

            Assert.NotNull(iContext);
        }
Beispiel #2
0
        public void Context_GetContext_Success()
        {
            var iContext  = VaultContext.GetContext();
            var iContext2 = VaultContext.GetContext();

            Assert.NotNull(iContext);
            Assert.NotNull(iContext2);
            Assert.AreSame(iContext, iContext2);
        }
Beispiel #3
0
        public void Context_RegisterTest_Success()
        {
            IContext iContext = VaultContext.GetContext();

            var dataSet = iContext.GetDataSet <TestEntity3>();

            Assert.IsNotNull(dataSet);
            Assert.IsInstanceOf(typeof(DataSet <TestEntity3>), dataSet);
        }
Beispiel #4
0
 public static IDataSet <TEntity> GetSetFor <TEntity>() where TEntity : class
 {
     return(VaultContext.GetContext().GetDataSet <TEntity>());
 }