public override void OnAfterInitialize()
        {
            this.SecurityCheckers.Clear(); // no default security (for performance only)

            var sec = new DisableServicesEntitySecurity(this);

            sec.DisableAll();
            sec.InsertDisabled = false;

            this.SecurityCheckers.Add(sec);
        }
        public void OnAfterInitializeTest()
        {
            // checking services be disabled

            TimeSeries_SmallInt_SecondsService service = (TimeSeries_SmallInt_SecondsService)CreateNewTimeSeries_SmallInt_SecondsService();
            DisableServicesEntitySecurity      sec     = (DisableServicesEntitySecurity)service.SecurityCheckers[0];

            Assert.IsTrue(sec is DisableServicesEntitySecurity);
            Assert.IsTrue(sec.InsertDisabled == false);
            Assert.IsTrue(sec.DeleteDisabled == true);
            Assert.IsTrue(sec.GetAllDisabled == true);
            Assert.IsTrue(sec.GetByFilterDisabled == true);
            Assert.IsTrue(sec.GetByIDDisabled == true);
            Assert.IsTrue(sec.GetCountDisabled == true);
            Assert.IsTrue(sec.GetMaxDisabled == true);
            Assert.IsTrue(sec.GetMinDisabled == true);
            Assert.IsTrue(sec.UpdateDisabled == true);
        }