AspNet.Identity.MongoDB.Test.UserStoreTests.AddUserToGroup C# (CSharp) 메소드

AddUserToGroup() 개인적인 메소드

private AddUserToGroup ( ) : void
리턴 void
		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);
		}