public async void Can_Inject_FunctionHandlerAsync_Dependencies() { A.CallTo(() => MockUserService.VerifyPassword(UserId, Password)) .Returns(true); var function = new AsyncAuthenticateUserFunction { UserId = UserId, Password = Password }; var result = await CommandRouter.ExecuteFunctionAsync(function); Assert.True(result.IsAuthenticated); }