public void Can_Inject_FunctionHandler_Dependencies() { A.CallTo(() => MockUserService.VerifyPassword(UserId, Password)) .Returns(true); var function = new AuthenticateUserFunction { UserId = UserId, Password = Password }; var result = CommandRouter.ExecuteFunction(function); Assert.True(result.IsAuthenticated); }