|
|
|
@ -1,4 +1,5 @@
|
|
|
|
|
using System.Security.Cryptography;
|
|
|
|
|
using System.Runtime.CompilerServices;
|
|
|
|
|
using System.Security.Cryptography;
|
|
|
|
|
using DbContextLib;
|
|
|
|
|
using Entities;
|
|
|
|
|
using Microsoft.AspNetCore.Cryptography.KeyDerivation;
|
|
|
|
@ -46,5 +47,23 @@ public class StubbedContext : UserDbContext
|
|
|
|
|
prf: KeyDerivationPrf.HMACSHA256,
|
|
|
|
|
iterationCount: 100000,
|
|
|
|
|
numBytesRequested: 256 / 8)), "Victor.GABORIT@etu.uca.fr", true));
|
|
|
|
|
|
|
|
|
|
modelBuilder.Entity<InquiryEntity>().HasData(
|
|
|
|
|
new InquiryEntity(1, "L'enquête de la carotte", "La description de l'inquiry1", true, null, null),
|
|
|
|
|
new InquiryEntity(2, "L'enquête sur les orang outan", "The new description", false, null, null),
|
|
|
|
|
new InquiryEntity(3, "L'enquête sur les parapluies", "Il pleuvait", false, null, null));
|
|
|
|
|
|
|
|
|
|
modelBuilder.Entity<InquiryTableEntity>().HasData(
|
|
|
|
|
new InquiryTableEntity(1, "Inquiry1",
|
|
|
|
|
"Server=localhost;Database=Inquiry1;Trusted_Connection=True;MultipleActiveResultSets=true"),
|
|
|
|
|
new InquiryTableEntity(2, "Inquiry2",
|
|
|
|
|
"Server=localhost;Database=Inquiry2;Trusted_Connection=True;MultipleActiveResultSets=true"),
|
|
|
|
|
new InquiryTableEntity(3, "Inquiry3",
|
|
|
|
|
"Server=localhost;Database=Inquiry3;Trusted_Connection=True;MultipleActiveResultSets=true"));
|
|
|
|
|
|
|
|
|
|
modelBuilder.Entity<SolutionEntity>().HasData(
|
|
|
|
|
new SolutionEntity(1, "Maxime", "Sapountzis", "La cuisine", "Le couteau", "Parce que c'est Maxime"),
|
|
|
|
|
new SolutionEntity(2, "Johnny", "Ratton", "La cuisine", "Le couteau", "Parce que il est ra****"),
|
|
|
|
|
new SolutionEntity(3, "Erwan", "Menager", "La salle de bain", "L'arachide", "Parce que c'est Erwan"));
|
|
|
|
|
}
|
|
|
|
|
}
|