public async Task ValidateHandleAsync_AdminTeamMemberSucceed() { // Arrange this.memberValidationHelper .Setup(svc => svc.IsAdminTeamMemberAsync(It.IsAny <string>())) .ReturnsAsync(() => true); this.authContext = FakeHttpContext.GetAuthorizationHandlerContextForTeamOwnerOrAdminUser(); // Act await this.policyHandler.HandleAsync(this.authContext); // Assert Assert.IsTrue(this.authContext.HasSucceeded); }