UnitTests du démon qui marchent pas (et du coup plus de test_requin tej) + le bouton avce le pllus et l'utilisateur en mieux man + diagrammes de classe plus classes + PS rien marche + double PS : 85 erreurs

master
Mathilde JEAN 3 years ago
parent 2fd4ed9c3a
commit d0d1137a0d

@ -2161,6 +2161,367 @@
"propertyLabel": {
"$ref": "AAAAAAGAvAsirFvmfmE="
}
},
{
"_type": "UMLClassView",
"_id": "AAAAAAGA15zTupMKXgg=",
"_parent": {
"$ref": "AAAAAAFF+qBtyKM79qY="
},
"model": {
"$ref": "AAAAAAGAvCeH6mc4CoU="
},
"subViews": [
{
"_type": "UMLNameCompartmentView",
"_id": "AAAAAAGA15zTupMLBK8=",
"_parent": {
"$ref": "AAAAAAGA15zTupMKXgg="
},
"model": {
"$ref": "AAAAAAGAvCeH6mc4CoU="
},
"subViews": [
{
"_type": "LabelView",
"_id": "AAAAAAGA15zTupMMkP4=",
"_parent": {
"$ref": "AAAAAAGA15zTupMLBK8="
},
"visible": false,
"font": "Arial;13;0",
"left": -383,
"top": 401,
"height": 13
},
{
"_type": "LabelView",
"_id": "AAAAAAGA15zTupMN8fY=",
"_parent": {
"$ref": "AAAAAAGA15zTupMLBK8="
},
"font": "Arial;13;1",
"left": 1277,
"top": 599,
"width": 456.09814453125,
"height": 13,
"text": "Expert"
},
{
"_type": "LabelView",
"_id": "AAAAAAGA15zTupMOUUk=",
"_parent": {
"$ref": "AAAAAAGA15zTupMLBK8="
},
"visible": false,
"font": "Arial;13;0",
"left": -383,
"top": 401,
"width": 73.67724609375,
"height": 13,
"text": "(from Model)"
},
{
"_type": "LabelView",
"_id": "AAAAAAGA15zTupMP1V0=",
"_parent": {
"$ref": "AAAAAAGA15zTupMLBK8="
},
"visible": false,
"font": "Arial;13;0",
"left": -383,
"top": 401,
"height": 13,
"horizontalAlignment": 1
}
],
"font": "Arial;13;0",
"left": 1272,
"top": 592,
"width": 466.09814453125,
"height": 25,
"stereotypeLabel": {
"$ref": "AAAAAAGA15zTupMMkP4="
},
"nameLabel": {
"$ref": "AAAAAAGA15zTupMN8fY="
},
"namespaceLabel": {
"$ref": "AAAAAAGA15zTupMOUUk="
},
"propertyLabel": {
"$ref": "AAAAAAGA15zTupMP1V0="
}
},
{
"_type": "UMLAttributeCompartmentView",
"_id": "AAAAAAGA15zTupMQ/Ns=",
"_parent": {
"$ref": "AAAAAAGA15zTupMKXgg="
},
"model": {
"$ref": "AAAAAAGAvCeH6mc4CoU="
},
"subViews": [
{
"_type": "UMLAttributeView",
"_id": "AAAAAAGA15zTupMRdPE=",
"_parent": {
"$ref": "AAAAAAGA15zTupMQ/Ns="
},
"model": {
"$ref": "AAAAAAGAvCf/UGee2AU="
},
"font": "Arial;13;0",
"left": 1277,
"top": 622,
"width": 456.09814453125,
"height": 13,
"text": "+/Surnom: string",
"horizontalAlignment": 0
},
{
"_type": "UMLAttributeView",
"_id": "AAAAAAGA15zTupMSbR8=",
"_parent": {
"$ref": "AAAAAAGA15zTupMQ/Ns="
},
"model": {
"$ref": "AAAAAAGAvCgQeGfCj+A="
},
"font": "Arial;13;0",
"left": 1277,
"top": 637,
"width": 456.09814453125,
"height": 13,
"text": "+/DateD: DateTime",
"horizontalAlignment": 0
}
],
"font": "Arial;13;0",
"left": 1272,
"top": 617,
"width": 466.09814453125,
"height": 38
},
{
"_type": "UMLOperationCompartmentView",
"_id": "AAAAAAGA15zTupMTuP8=",
"_parent": {
"$ref": "AAAAAAGA15zTupMKXgg="
},
"model": {
"$ref": "AAAAAAGAvCeH6mc4CoU="
},
"subViews": [
{
"_type": "UMLOperationView",
"_id": "AAAAAAGA15zTupMUSJs=",
"_parent": {
"$ref": "AAAAAAGA15zTupMTuP8="
},
"model": {
"$ref": "AAAAAAGAvCkVKGi2/50="
},
"visible": false,
"font": "Arial;13;0",
"left": 1253,
"top": 828,
"width": 456.09814453125,
"height": 13,
"text": "+ValiderSubmit(lBdFine: List<Requin>, lBdPasFinie: List<Requin>): int",
"horizontalAlignment": 0
},
{
"_type": "UMLOperationView",
"_id": "AAAAAAGA15zTupMVIKA=",
"_parent": {
"$ref": "AAAAAAGA15zTupMTuP8="
},
"model": {
"$ref": "AAAAAAGAvCrrV2nJyHw="
},
"visible": false,
"font": "Arial;13;0",
"left": 1253,
"top": 843,
"width": 456.09814453125,
"height": 13,
"text": "+ValiderUnCangement(lBdFine: List<Requin>, lBdPasFinie: List<Requin>): int",
"horizontalAlignment": 0
},
{
"_type": "UMLOperationView",
"_id": "AAAAAAGA15zTupMWJ5E=",
"_parent": {
"$ref": "AAAAAAGA15zTupMTuP8="
},
"model": {
"$ref": "AAAAAAGAvC3bCm6KAZI="
},
"font": "Arial;13;0",
"left": 1277,
"top": 662,
"width": 456.09814453125,
"height": 13,
"text": "+Equals(e: Expert): bool",
"horizontalAlignment": 0
}
],
"font": "Arial;13;0",
"left": 1272,
"top": 655,
"width": 466.09814453125,
"height": 25
},
{
"_type": "UMLReceptionCompartmentView",
"_id": "AAAAAAGA15zTupMXcuM=",
"_parent": {
"$ref": "AAAAAAGA15zTupMKXgg="
},
"model": {
"$ref": "AAAAAAGAvCeH6mc4CoU="
},
"visible": false,
"font": "Arial;13;0",
"left": -352,
"top": 176,
"width": 10,
"height": 10
},
{
"_type": "UMLTemplateParameterCompartmentView",
"_id": "AAAAAAGA15zTupMYd3s=",
"_parent": {
"$ref": "AAAAAAGA15zTupMKXgg="
},
"model": {
"$ref": "AAAAAAGAvCeH6mc4CoU="
},
"visible": false,
"font": "Arial;13;0",
"left": -352,
"top": 176,
"width": 10,
"height": 10
}
],
"font": "Arial;13;0",
"containerChangeable": true,
"left": 1272,
"top": 592,
"width": 466.09814453125,
"height": 89,
"nameCompartment": {
"$ref": "AAAAAAGA15zTupMLBK8="
},
"attributeCompartment": {
"$ref": "AAAAAAGA15zTupMQ/Ns="
},
"operationCompartment": {
"$ref": "AAAAAAGA15zTupMTuP8="
},
"receptionCompartment": {
"$ref": "AAAAAAGA15zTupMXcuM="
},
"templateParameterCompartment": {
"$ref": "AAAAAAGA15zTupMYd3s="
}
},
{
"_type": "UMLRealizationView",
"_id": "AAAAAAGA1546aZZRFXY=",
"_parent": {
"$ref": "AAAAAAFF+qBtyKM79qY="
},
"model": {
"$ref": "AAAAAAGA1546aZZPrwk="
},
"subViews": [
{
"_type": "EdgeLabelView",
"_id": "AAAAAAGA1546aZZSC5s=",
"_parent": {
"$ref": "AAAAAAGA1546aZZRFXY="
},
"model": {
"$ref": "AAAAAAGA1546aZZPrwk="
},
"visible": false,
"font": "Arial;13;0",
"left": 1288,
"top": 568,
"height": 13,
"alpha": 1.5707963267948966,
"distance": 15,
"hostEdge": {
"$ref": "AAAAAAGA1546aZZRFXY="
},
"edgePosition": 1
},
{
"_type": "EdgeLabelView",
"_id": "AAAAAAGA1546apZTDfI=",
"_parent": {
"$ref": "AAAAAAGA1546aZZRFXY="
},
"model": {
"$ref": "AAAAAAGA1546aZZPrwk="
},
"visible": null,
"font": "Arial;13;0",
"left": 1283,
"top": 582,
"height": 13,
"alpha": 1.5707963267948966,
"distance": 30,
"hostEdge": {
"$ref": "AAAAAAGA1546aZZRFXY="
},
"edgePosition": 1
},
{
"_type": "EdgeLabelView",
"_id": "AAAAAAGA1546apZUkJA=",
"_parent": {
"$ref": "AAAAAAGA1546aZZRFXY="
},
"model": {
"$ref": "AAAAAAGA1546aZZPrwk="
},
"visible": false,
"font": "Arial;13;0",
"left": 1299,
"top": 539,
"height": 13,
"alpha": -1.5707963267948966,
"distance": 15,
"hostEdge": {
"$ref": "AAAAAAGA1546aZZRFXY="
},
"edgePosition": 1
}
],
"font": "Arial;13;0",
"head": {
"$ref": "AAAAAAGAs7TrzGLtlPM="
},
"tail": {
"$ref": "AAAAAAGA15zTupMKXgg="
},
"lineStyle": 1,
"points": "1380:591;1209:529",
"showVisibility": true,
"nameLabel": {
"$ref": "AAAAAAGA1546aZZSC5s="
},
"stereotypeLabel": {
"$ref": "AAAAAAGA1546apZTDfI="
},
"propertyLabel": {
"$ref": "AAAAAAGA1546apZUkJA="
}
}
]
},
@ -3018,6 +3379,19 @@
"target": {
"$ref": "AAAAAAGAs7Try2LrDc4="
}
},
{
"_type": "UMLRealization",
"_id": "AAAAAAGA1546aZZPrwk=",
"_parent": {
"$ref": "AAAAAAGAvCeH6mc4CoU="
},
"source": {
"$ref": "AAAAAAGAvCeH6mc4CoU="
},
"target": {
"$ref": "AAAAAAGAs7Try2LrDc4="
}
}
],
"attributes": [
@ -3084,7 +3458,7 @@
"_parent": {
"$ref": "AAAAAAGAvCeH6mc4CoU="
},
"name": "ValiderUnChangement",
"name": "ValiderUnCangement",
"parameters": [
{
"_type": "UMLParameter",

File diff suppressed because it is too large Load Diff

@ -10,5 +10,6 @@ namespace Persistance
public interface IPersistanceManager
{
IEnumerable<Requin> LoadRequins();
//IEnumerable<Requin> SaveRequins();
}
}

@ -19,4 +19,8 @@
</PackageReference>
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\Modèle\Modèle.csproj" />
</ItemGroup>
</Project>

@ -0,0 +1,17 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Xamarin.Forms;
namespace TestsUnitaires
{
public class Tests_Requin :
{
public Page1()
{
}
}
}

@ -1,14 +0,0 @@
using System;
using Xunit;
namespace TestsUnitaires
{
public class UnitTest1
{
[Fact]
public void Test1()
{
}
}
}

@ -0,0 +1,75 @@
using System;
using Xunit;
using Modèle;
using System.Collections.Generic;
namespace UnitTests
{
public class UnitTest_Modele
{
[Fact]
public void Test1()
{
List<Zone> zones = new List<Zone> { Zone.ATLANTIQUE, Zone.PACIFIQUE };
List<string> RandomFunFacts = new List<string> { "askip les requins c'est cool", "le requin mexicain possède un groin", "le requin scie est sympa comme tout il me coupe du bois l'hiver" };
Requin requin = new Requin("Bob", "leRequin", "Les requins c'est trop cool", "LaPhoto", "LaVidéo", "laPhoto", Conservation.EX, zones, "askip un requin c'est rigolo");
Requin requin2 = new Requin("nom", "nomSci", "des", "photo", "video", "photoCarte", Conservation.CR, zones, RandomFunFacts);
List<Requin> bdd = new List<Requin> { requin, requin2 };
Console.WriteLine("Test de la classe Requin!");
foreach (Zone zone in requin2.Repartition)
{
Console.WriteLine(zone);
}
}
[Fact]
public void Test2()
{
List<Zone> zones = new List<Zone> { Zone.ATLANTIQUE, Zone.PACIFIQUE };
List<string> RandomFunFacts = new List<string> { "askip les requins c'est cool", "le requin mexicain possède un groin", "le requin scie est sympa comme tout il me coupe du bois l'hiver" };
Requin requin = new Requin("Bob", "leRequin", "Les requins c'est trop cool", "LaPhoto", "LaVidéo", "laPhoto", Conservation.EX, zones, "askip un requin c'est rigolo");
Requin requin2 = new Requin("nom", "nomSci", "des", "photo", "video", "photoCarte", Conservation.CR, zones, RandomFunFacts);
List<Requin> bdd = new List<Requin> { requin, requin2 };
Console.WriteLine("Test Personnes :");
DateTime d = new DateTime(2020, 12, 12);
List<Requin> finie = new List<Requin>();
Utilisateur u1 = new Utilisateur("bobpoutou@yahoo.com", "vivepoutou");
Utilisateur u2 = new Utilisateur("jeancarotte@gamil.com", "miamlescarottes", 48);
Expert e1 = new Expert("AlexPert@gmail.com", "lesRequins", "Le Gros BG", d);
Expert e2 = new Expert("Blabla@gmail.com", "lesPoissons", "Le débutant");
u1.FaireUnSubmit("Bob", "leRequin", "Les requins c'est trop cool", "LaPhoto", "LaVidéo", "laPhoto", Conservation.EX, zones, "askip un requin c'est rigolo", bdd);
e1.ValiderSubmit(finie, bdd);
Console.WriteLine(u1);
Console.WriteLine(u2);
foreach (Requin r in bdd)
{
Console.WriteLine(r);
}
foreach (Requin r in finie)
{
Console.WriteLine(r);
}
finie.Clear();
finie.Add(requin);
Console.WriteLine(e1);
Console.WriteLine(e2);
List<Zone> z = new List<Zone>();
u1.FaireUnChangement(requin, "lalalilalou", "", "", "", Conservation.NE, z, "hahahahaha", bdd);
e1.ValiderUnChangement(finie, bdd);
foreach (Requin r in finie)
{
Console.WriteLine(r);
}
}
}
}

@ -0,0 +1,26 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net5.0</TargetFramework>
<IsPackable>false</IsPackable>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.9.4" />
<PackageReference Include="xunit" Version="2.4.1" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.3">
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
</PackageReference>
<PackageReference Include="coverlet.collector" Version="3.0.2">
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
<PrivateAssets>all</PrivateAssets>
</PackageReference>
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\Modèle\Modèle.csproj" />
</ItemGroup>
</Project>

@ -18,8 +18,6 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Modèle", "Modèle\Modèle.
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "tests", "tests", "{18E1E85C-1B90-47C9-BB80-53FAE0A79466}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "test_requin", "test_requin\test_requin.csproj", "{D82F546C-3455-4857-A705-BDD3F61973CD}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "StubLib", "StubLib\StubLib.csproj", "{3DE43637-4ADE-420B-A78E-BD5A01B7E930}"
ProjectSection(ProjectDependencies) = postProject
{A3496A97-FA54-4FA9-A128-4B0D97D8F7EF} = {A3496A97-FA54-4FA9-A128-4B0D97D8F7EF}
@ -27,7 +25,7 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "StubLib", "StubLib\StubLib.
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Persistance", "Persistance\Persistance.csproj", "{A3496A97-FA54-4FA9-A128-4B0D97D8F7EF}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "TestsUnitaires", "TestsUnitaires\TestsUnitaires.csproj", "{44FC8FF7-778E-462A-8E46-9153006A4EAE}"
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "UnitTests", "UnitTests\UnitTests.csproj", "{D92A482A-06C4-4F7B-B51F-3934A2E4C8E2}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
@ -51,10 +49,6 @@ Global
{006E8327-215C-46B4-8816-24B996B82798}.Debug|Any CPU.Build.0 = Debug|Any CPU
{006E8327-215C-46B4-8816-24B996B82798}.Release|Any CPU.ActiveCfg = Release|Any CPU
{006E8327-215C-46B4-8816-24B996B82798}.Release|Any CPU.Build.0 = Release|Any CPU
{D82F546C-3455-4857-A705-BDD3F61973CD}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{D82F546C-3455-4857-A705-BDD3F61973CD}.Debug|Any CPU.Build.0 = Debug|Any CPU
{D82F546C-3455-4857-A705-BDD3F61973CD}.Release|Any CPU.ActiveCfg = Release|Any CPU
{D82F546C-3455-4857-A705-BDD3F61973CD}.Release|Any CPU.Build.0 = Release|Any CPU
{3DE43637-4ADE-420B-A78E-BD5A01B7E930}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{3DE43637-4ADE-420B-A78E-BD5A01B7E930}.Debug|Any CPU.Build.0 = Debug|Any CPU
{3DE43637-4ADE-420B-A78E-BD5A01B7E930}.Release|Any CPU.ActiveCfg = Release|Any CPU
@ -63,18 +57,17 @@ Global
{A3496A97-FA54-4FA9-A128-4B0D97D8F7EF}.Debug|Any CPU.Build.0 = Debug|Any CPU
{A3496A97-FA54-4FA9-A128-4B0D97D8F7EF}.Release|Any CPU.ActiveCfg = Release|Any CPU
{A3496A97-FA54-4FA9-A128-4B0D97D8F7EF}.Release|Any CPU.Build.0 = Release|Any CPU
{44FC8FF7-778E-462A-8E46-9153006A4EAE}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{44FC8FF7-778E-462A-8E46-9153006A4EAE}.Debug|Any CPU.Build.0 = Debug|Any CPU
{44FC8FF7-778E-462A-8E46-9153006A4EAE}.Release|Any CPU.ActiveCfg = Release|Any CPU
{44FC8FF7-778E-462A-8E46-9153006A4EAE}.Release|Any CPU.Build.0 = Release|Any CPU
{D92A482A-06C4-4F7B-B51F-3934A2E4C8E2}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{D92A482A-06C4-4F7B-B51F-3934A2E4C8E2}.Debug|Any CPU.Build.0 = Debug|Any CPU
{D92A482A-06C4-4F7B-B51F-3934A2E4C8E2}.Release|Any CPU.ActiveCfg = Release|Any CPU
{D92A482A-06C4-4F7B-B51F-3934A2E4C8E2}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(NestedProjects) = preSolution
{C85454C4-850B-4305-AFB6-789DDA8CD88A} = {18E1E85C-1B90-47C9-BB80-53FAE0A79466}
{D82F546C-3455-4857-A705-BDD3F61973CD} = {18E1E85C-1B90-47C9-BB80-53FAE0A79466}
{44FC8FF7-778E-462A-8E46-9153006A4EAE} = {18E1E85C-1B90-47C9-BB80-53FAE0A79466}
{D92A482A-06C4-4F7B-B51F-3934A2E4C8E2} = {18E1E85C-1B90-47C9-BB80-53FAE0A79466}
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {169891F4-0C16-4020-9581-5AC90ADE6FD5}

Binary file not shown.

After

Width:  |  Height:  |  Size: 45 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.7 KiB

After

Width:  |  Height:  |  Size: 17 KiB

@ -25,6 +25,7 @@
<None Remove="Images\NT.png" />
<None Remove="Images\plus.png" />
<None Remove="Images\rep_Heterodontus_mexicanus.png" />
<None Remove="Images\User.png" />
<None Remove="Images\VU.png" />
<None Remove="Videos\Vid-dormeur-mexicain.mp4" />
</ItemGroup>
@ -61,6 +62,9 @@
<Content Include="Images\rep_Heterodontus_mexicanus.png">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
<Content Include="Images\User.png">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>
<Content Include="Images\VU.png">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
</Content>

@ -11,11 +11,11 @@
<DockPanel x:Name="Button" DockPanel.Dock="Top">
<Grid>
<Button Style="{StaticResource Button1}" Width="50" Height="50" HorizontalAlignment="Left">
<Image Source="" HorizontalAlignment="Center" VerticalAlignment="Center"/>
<Image Source="Images/User.png" HorizontalAlignment="Center" Height="40" VerticalAlignment="Center"/>
</Button>
<Image Source="Images\Logo_entier.png" HorizontalAlignment="Center" VerticalAlignment="Center" Margin="0,10,0,10" Height="40" Stretch="Uniform" StretchDirection="Both"></Image>
<Button x:Name="add" Style="{StaticResource Button1}" HorizontalAlignment="Right" VerticalAlignment="Center" Width="50" Height="50" FontSize="25" Background="{StaticResource Couleur3}">
<Image Source="Images\plus.png"/>
<Image Source="Images\Plus.png" Width="30"/>
</Button>
</Grid>
</DockPanel>

@ -8,57 +8,14 @@ namespace test_requin
{
static void Main(string[] args)
{
List<Zone> zones = new List<Zone> { Zone.ATLANTIQUE, Zone.PACIFIQUE };
Console.WriteLine("Test de la classe Requin!");
List<string> RandomFunFacts = new List<string> { "askip les requins c'est cool", "le requin mexicain possède un groin", "le requin scie est sympa comme tout il me coupe du bois l'hiver" };
Requin requin = new Requin("Bob", "leRequin", "Les requins c'est trop cool", "LaPhoto", "LaVidéo", "laPhoto", Conservation.EX, zones, "askip un requin c'est rigolo"); ;
Requin requin2 = new Requin("nom", "nomSci", "des", "photo", "video", "photoCarte", Conservation.CR, zones, RandomFunFacts);
List<Requin> bdd = new List<Requin> { requin, requin2 };
foreach (Zone zone in requin2.Repartition)
{
Console.WriteLine(zone);
}
Console.Write("------------------------------------------------------------------------------------\n");
Console.WriteLine("Test Personnes :");
DateTime d = new DateTime(2020, 12, 12);
List <Requin> finie= new List<Requin>();
Utilisateur u1= new Utilisateur("bobpoutou@yahoo.com", "vivepoutou");
Utilisateur u2 = new Utilisateur("jeancarotte@gamil.com", "miamlescarottes", 48);
Expert e1 = new Expert("AlexPert@gmail.com", "lesRequins", "Le Gros BG",d);
Expert e2 = new Expert("Blabla@gmail.com", "lesPoissons", "Le débutant");
u1.FaireUnSubmit("Bob", "leRequin", "Les requins c'est trop cool", "LaPhoto", "LaVidéo", "laPhoto", Conservation.EX, zones, "askip un requin c'est rigolo", bdd);
e1.ValiderSubmit(finie, bdd);
Console.WriteLine(u1);
Console.WriteLine(u2);
foreach (Requin r in bdd)
{
Console.WriteLine(r);
}
Console.Write("------------------------------------------------------------------------------------\n");
foreach (Requin r in finie)
{
Console.WriteLine(r);
}
finie.Clear();
finie.Add(requin);
Console.WriteLine(e1);
Console.WriteLine(e2);
List<Zone> z = new List<Zone>();
Console.WriteLine("----------------------------------------------------------------------------------\n");
u1.FaireUnChangement(requin, "lalalilalou", "", "", "", Conservation.NE, z, "hahahahaha", bdd);
e1.ValiderUnChangement(finie, bdd);
foreach(Requin r in finie)
{
Console.WriteLine(r);
}
}
}
}

Loading…
Cancel
Save