public async Task ValidateHandleAsync_Failed() { // Arrange this.memberValidationHelper .Setup(svc => svc.IsAdminTeamMemberAsync(It.IsAny <string>())) .ReturnsAsync(() => false); this.authContext = FakeHttpContext.GetAuthorizationHandlerContextForAdminTeamMember(); // Act await this.policyHandler.HandleAsync(this.authContext); // Assert Assert.IsFalse(this.authContext.HasSucceeded); }