Ejemplo n.º 1
0
        private void BlueprintList_CollectionChanged(object sender, System.Collections.Specialized.NotifyCollectionChangedEventArgs e)
        {
            string json = JsonConvert.SerializeObject(BlueprintList);

            SetValue("BlueprintList", CryptoService.Encrypt(json, AppSettingsKey));
            OnUpdateBlueprintList?.Invoke(this, BlueprintList.ToArray());
        }
Ejemplo n.º 2
0
 private void PopulateBlueprintListFromStorage()
 {
     try
     {
         string encryptedData = GetValue("BlueprintList", "");
         if (string.IsNullOrEmpty(encryptedData))
         {
             return;
         }
         string json = CryptoService.Decrypt(encryptedData, AppSettingsKey);
         BlueprintRegistryItem[] items = JsonConvert.DeserializeObject <BlueprintRegistryItem[]>(json);
         if (items == null)
         {
             return;
         }
         foreach (BlueprintRegistryItem item in items)
         {
             BlueprintList.Add(item);
         }
     }
     catch (Exception) { }
 }
Ejemplo n.º 3
0
 public async Task GetBlueprints_ValidRequest_HasResult()
 {
     BlueprintList res = (await _validKey.Characters[0].GetBlueprintsAsync()).Result;
 }
Ejemplo n.º 4
0
        public async Task GetBlueprints_ValidRequest_HasResult()
        {
            BlueprintList res = (await _validKey.Corporation.GetBlueprintsAsync()).Result;

            Assert.IsTrue(res.Blueprints.Any());
        }