Пример #1
0
        private static void SetupMembers()
        {
            Member defaultMember = new Member
                                       {
                                           UserName = "******",
                                           Email = "*****@*****.**",
                                           Role = roles[0],
                                           Profile = new Profile
                                                         {
                                                             FirstName = "Administrator",
                                                             LastName = "Application",
                                                             CompleteName = "Application Administrator",
                                                             Address = "",
                                                             Building = "",
                                                             Floor = "",
                                                             Phone = ""
                                                         }
                                       };
            Password defaultPassword = new Password
                                           {
                                               Salt = "IG9mMcHcoWAx6hM2W0aDkfUEf+Y/fjmNk6v1MTXy1B0=",
                                               Hash = "CC9622A7EAA4E34F88CCE34CA5D95420284332F3", // Password: Torino12
                                               Member = defaultMember
                                           };

            context.Members.Add(defaultMember);
            context.Passwords.Add(defaultPassword);
        }
Пример #2
0
 public Password(string password, Member member)
 {
     SetPassword(password);
     Member = member;
 }