示例#1
0
        public void Should_Get_Value()
        {
            var dynamicParameter = CreateAndGetDynamicParameterWithTestPermission();

            var dynamicParameterValue = new DynamicParameterValue()
            {
                DynamicParameterId = dynamicParameter.Id,
                Value    = "Test",
                TenantId = AbpSession.TenantId
            };

            WithUnitOfWork(() =>
            {
                var d = DynamicParameterStore.Get(dynamicParameter.Id);
                _dynamicParameterValueManager.Add(dynamicParameterValue);
            });

            RunAndCheckIfPermissionControlled(() =>
            {
                var entity = _dynamicParameterValueManager.Get(dynamicParameterValue.Id);
                CheckEquality(entity, dynamicParameterValue);
            });
        }