/// <summary>
 /// Verifies the doesnt exist.
 /// </summary>
 private void VerifyDoesntExist()
 {
     if (Shops.Exists(_databasePath, _shopsName, out _errOut))
     {
         long id    = Shops.GetId(_databasePath, _shopsName, out _errOut);
         bool value = GlobalList.Delete(_databasePath, id, out _errOut);
     }
 }
        public void GetNameTest()
        {
            VerifyExists();
            long   id    = Shops.GetId(_databasePath, _shopsName, out _errOut);
            string value = Shops.GetName(_databasePath, id, out _errOut);

            General.HasValue(value, _errOut);
        }
        public void DeleteTest()
        {
            VerifyExists();
            long id    = Shops.GetId(_databasePath, _shopsName, out _errOut);
            bool value = Shops.Delete(_databasePath, id, out _errOut);

            General.HasTrueValue(value, _errOut);
        }
        public void GetIdTest()
        {
            VerifyExists();
            long value = Shops.GetId(_databasePath, _shopsName, out _errOut);

            TestContext.WriteLine($"ids: {value}");
            General.HasTrueValue(value > 0, _errOut);
        }
        public void GetByIdTest()
        {
            VerifyExists();
            long id = Shops.GetId(_databasePath, _shopsName, out _errOut);
            List <GunShopDetails> value = Shops.Get(_databasePath, id, out _errOut);

            PrintList(value);
            General.HasTrueValue(value.Count > 0, _errOut);
        }
        public void HasCollectionAttachedTest()
        {
            VerifyExists();
            long id    = Shops.GetId(_databasePath, _shopsNameExisting, out _errOut);
            int  value = Shops.HasCollectionAttached(_databasePath, id, out _errOut);

            TestContext.WriteLine($"firearm count in shop: {value}");
            General.HasTrueValue(value > 0, _errOut);
        }