public static Owner CreateOwner() { var mobiles = new Dictionary <int, string> { { 0, "0495204340" }, { 1, "0496564340" } }; var emailAdresse = new Dictionary <int, string>() { { 0, "*****@*****.**" }, { 1, "*****@*****.**" } }; var ret = new Owner { FirstName = "Geoffrey", Language = Language.fr, Gender = Gender.Male, PasswordHash = "kljkljkljkljk", PasswordSalt = "lmklmkm", LastName = "Vandiest", RegistrationDate = DateTime.Now }; ret.EmailAddresses = new Dictionary <int, string> { { 0, "*****@*****.**" }, { 1, "*****@*****.**" } }; ret.Mobiles = mobiles; ret.AddBadge(new Badge { Nbr = "ABC-RTY-RTY" }); ret.AddBadge(new Badge { Nbr = "ABC-KLM-POM" }); return(ret); }