public void Test_Register() { var data = new EfData(); var expected = new AspNetUser { Id = "djkfhieur55-3i3kj-kkl", Email = "*****@*****.**", EmailConfirmed = true, Name = "Fred", StreetAddress = "123 Here", City = "Reston", State = "VA", Zip = "20190", PhoneNumber = "1234567890", AccessFailedCount = 0, LockoutEnabled = false, PasswordHash = "ddddddddddddddddddddd", SecurityStamp = null, TwoFactorEnabled = false, PhoneNumberConfirmed = false, LockoutEndDateUtc = null, UserName = "******" }; var actual = data.AddUser(expected); Assert.True(actual); }
public bool Register(UserDAO user) { return(ef.AddUser(UserMapper.MapToUser(user))); }