using Microsoft.AspNetCore.Identity; using Microsoft.EntityFrameworkCore; using Microsoft.EntityFrameworkCore.Metadata.Builders; using WebDoorCreator.Data.DbModels; namespace WebDoorCreator.Data { public class TestConfiguration : IEntityTypeConfiguration { #region Public Methods public void Configure(EntityTypeBuilder builder) { // Default seeded users builder.HasData( // SuperAdmins getNewTestRec("samuele.locatelli@egalware.com", "th1sIsTh3R1vrOfThNgt96"), getNewTestRec("emmanuele.sassi@egalware.com", "th1sIsTh3R1vrOfThNgt98!"), // Admin getNewTestRec("marco.locatelli@egalware.com", "th1sIsTh3R1vrOfThNgt94"), getNewTestRec("samuele@steamware.net", "th1sIsTh3R1vrOfThNgt92") ); } #endregion Public Methods #region Protected Fields #endregion Protected Fields #region Protected Methods protected IdentityTableSeedTest getNewTestRec(string campo1, string campo2) { var newRec = new IdentityTableSeedTest { Campo1 = campo1, Campo2 = campo2.ToUpper() }; return newRec; } #endregion Protected Methods } }