public void AddUserToGroup() {
this.um.Create(new IdentityUser {
EmailAddress = "[email protected]",
UserName = "Test8"
});
IdentityUser user = this.um.FindByEmail("[email protected]");
String roleName = "Editor";
IdentityResult result = this.rm.Create(new IdentityRole { Name = roleName });
result = this.um.AddToRole(user.Id, roleName);
user = this.um.FindByEmail("[email protected]");
user.Roles.Count.Should().Be(1);
}