public async Task Handle_Success_NoCondition() { var barman = new Barman() { Id = Guid.NewGuid().ToString() }; await _dbContext.AddAsync(barman); await _dbContext.SaveChangesAsync(); var claimPrincipal = new ClaimsPrincipal(new ClaimsIdentity(new [] { new Claim(ClaimTypes.NameIdentifier, barman.Id) })); Assert.IsType <Barman>(await _handler.HandleAsync(claimPrincipal)); _loggerMock.VerifyNoOtherCalls(); }