Correction Fusion UI_Windows
continuous-integration/drone/push Build is failing Details

PatchDeserialisation
Hugo LIVET 2 years ago
parent 739fa77493
commit a0ff37248a

@ -86,7 +86,7 @@ namespace Data
{
if (row.Contains("PAIEMENT"))
{
modePayement = MethodePayement.Cb;
modePayement = MethodePayement.CB;
}
else
{

@ -17,7 +17,7 @@ public partial class CV_Planification : ContentView
planification = new List<Planification>();
planification.Add(new("Eau", 55, DateTime.Now, MethodePayement.CB, TagOperation.Divers, true));
/*planification.Add(new("Eau", 55, DateTime.Now, MethodePayement.CB, TagOperation.Divers, true));
planification.Add(new("Amazon", 103.30, DateTime.Now, MethodePayement.CB, TagOperation.Divers, true));
planification.Add(new("Mutuelle", 38.50, DateTime.Now, MethodePayement.Prevelement, TagOperation.Santé, true));
planification.Add(new("Loyer", 500, DateTime.Now, MethodePayement.Virement, TagOperation.Habitation, true));
@ -37,6 +37,7 @@ public partial class CV_Planification : ContentView
planification.Add(new("Amazon", 103.30, DateTime.Now, MethodePayement.CB, TagOperation.Divers, true));
planification.Add(new("Mutuelle", 38.50, DateTime.Now, MethodePayement.Prevelement, TagOperation.Santé, true));
planification.Add(new("Loyer", 500, DateTime.Now, MethodePayement.Virement, TagOperation.Habitation, true));
*/
BindingContext = planification;

@ -9,7 +9,7 @@ public partial class Compte : ContentView
{
InitializeComponent();
Model.Compte compte = new Model.Compte("compte courant", 2000);
Model.Compte compte = new Model.Compte("", "compte courant", 2000);
BindingContext = compte;

@ -4,7 +4,6 @@ using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Text.Json.Serialization;
using System.Threading.Tasks;
namespace Model

@ -4,7 +4,6 @@ using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Text.Json.Serialization;
using System.Threading.Tasks;
namespace Model

@ -5,7 +5,6 @@ using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Text.Json.Serialization;
using System.Threading.Tasks;
namespace Model

@ -161,7 +161,7 @@ foreach (Operation o in operations)
Console.WriteLine("\n----Modifs----\n");
rrrrrrr = ClientAPI.PostAddOperationInscritAsync(new Compte("1","PEL"), new Operation("test",100,DateTime.Now,MethodePayement.Cb, TagOperation.Alimentaire, true, true)).GetAwaiter().GetResult();
rrrrrrr = ClientAPI.PostAddOperationInscritAsync(new Compte("1","PEL"), new Operation("test",100,DateTime.Now,MethodePayement.CB, TagOperation.Alimentaire, true, true)).GetAwaiter().GetResult();
Console.WriteLine("Add Ope On Compte : " + rrrrrrr + "\n");
Console.WriteLine("\n----Verif----\n");
@ -193,7 +193,7 @@ foreach (Planification p in planifications)
Console.WriteLine("\n----Modifs----\n");
rrrrrrr = ClientAPI.PostAddPlanificationInscritAsync(new Compte("1", "PEL"), new Planification("test", 100, DateTime.Now, MethodePayement.Cb, TagOperation.Alimentaire, true)).GetAwaiter().GetResult();
rrrrrrr = ClientAPI.PostAddPlanificationInscritAsync(new Compte("1", "PEL"), new Planification("test", 100, DateTime.Now, MethodePayement.CB, TagOperation.Alimentaire, true)).GetAwaiter().GetResult();
Console.WriteLine("Add Pla On Compte : " + rrrrrrr + "\n");
Console.WriteLine("\n----Verif----\n");
@ -225,7 +225,7 @@ foreach (Echeance e in echeances)
Console.WriteLine("\n----Modifs----\n");
rrrrrrr = ClientAPI.PostAddEcheanceInscritAsync(new Compte("1", "PEL"), new Echeance("test", 100, DateTime.Now, MethodePayement.Cb, TagOperation.Alimentaire, true)).GetAwaiter().GetResult();
rrrrrrr = ClientAPI.PostAddEcheanceInscritAsync(new Compte("1", "PEL"), new Echeance("test", 100, DateTime.Now, MethodePayement.CB, TagOperation.Alimentaire, true)).GetAwaiter().GetResult();
Console.WriteLine("Add Ech On Compte : " + rrrrrrr + "\n");
Console.WriteLine("\n----Verif----\n");

@ -25,7 +25,7 @@ namespace TestsUnitaires
public void TestConstructeurCompte2()
{
List<Operation> testlistope = new();
Operation testope = new("test", 20, DateTime.Now, MethodePayement.Cb, TagOperation.Alimentaire, true, true);
Operation testope = new("test", 20, DateTime.Now, MethodePayement.CB, TagOperation.Alimentaire, true, true);
testlistope.Add(testope);
Compte c1 = new("012345678901", "Livret A", 234,testlistope);
Compte c2 = new("012345678902", "&e23R_te7", 1245.34, testlistope);
@ -48,7 +48,7 @@ namespace TestsUnitaires
public void testAjouterOperation()
{
Compte c1 = new("012345678901", "Livret A", 234);
c1.ajouterOperation(new("test", 20, DateTime.Now, MethodePayement.Cb, TagOperation.Alimentaire, true, true));
c1.ajouterOperation(new("test", 20, DateTime.Now, MethodePayement.CB, TagOperation.Alimentaire, true, true));
Assert.True(c1.LesOpe.Count() == 1);
}
@ -56,7 +56,7 @@ namespace TestsUnitaires
public void testSupprimerOperation()
{
Compte c1 = new("012345678901", "Livret A", 234);
Operation testope = new("test", 20, DateTime.Now, MethodePayement.Cb, TagOperation.Alimentaire, true, true);
Operation testope = new("test", 20, DateTime.Now, MethodePayement.CB, TagOperation.Alimentaire, true, true);
c1.ajouterOperation(testope);
Assert.True(c1.LesOpe.Count() == 1);
c1.supprimerOperation(testope);

Loading…
Cancel
Save