public void ShouldInsertWhenObjectPermissionRepositoryIsValid()
        {
            var entity = FactoryObjectPermission.RandomCreate();

            _spacePlanningUnitOfWork.ObjectPermissionRepository.Add(entity);
            _spacePlanningUnitOfWork.Save();
            var retrived = _spacePlanningUnitOfWork.ObjectPermissionRepository.GetById(entity.ObjectId, entity.PermissionId);

            Assert.IsTrue(retrived.Equals(entity));
        }
        public void ShoultDeleteWhenObjectPermissionRepositoryIsValid()
        {
            var entity = FactoryObjectPermission.RandomCreate();

            _spacePlanningUnitOfWork.ObjectPermissionRepository.Add(entity);
            _spacePlanningUnitOfWork.Save();

            _spacePlanningUnitOfWork.ObjectPermissionRepository.Delete(entity);
            _spacePlanningUnitOfWork.Save();
            var retrived = _spacePlanningUnitOfWork.ObjectPermissionRepository.GetById(entity.ObjectId, entity.PermissionId);

            Assert.IsNull(retrived);
        }