From the little a can understand from your post. You can't figure out how id and timestamp is being passed to the service.updateTimeStamp function. There is a concept in scala called partially applied functions. Which i can only illustrate via example. Let say in your REPL you define a function like the following:
def fullName(firstName: String, lastName: String): String = firstName + " " + lastName
This is basically a function that takes two parameters of type String and returns a String - (String, String) => String. To call the function u've to pass these arguments, for example:
(Note: Apologies. I don't know which is your first name or last, bear with me, no offence intended.)
val yourFullName = fullName("Ravikumar", "Maddi") which is equivalent to val yourFullName = "Ravikumar Maddi".
There are other ways to use this function, for example let say you want to provide your first name first and provide your last name later. you do that like this:
val firstNameGivenProvideLast = fullName("Ravikumar", _: String) this will evaluate to a function with the signature String => String, which means a function that takes a String n returns a String. firstNameGivenProvideLast is a function that contains value for the first name that was provided at definition, and it expects a String to evaluate. eample of usage:
val newFullName = firstNameGivenProvideLast("Maddi") which evaluate to "Ravikumar Mandi" just like yourFullName variable above.
Similar to your code you can also do:
val partiallyAppled = fullName _
which evaluate to a function with the signature: (String, String) => String, which in this case is redundant because it still the same function as fullName. The beauty of partially applied functions can be seen in the previous example.
The concept of calling a function and omitting some parameters by providing them has _ - the wildcard symbol, means you're partially applying this function which is what is happening in your test case. So one way or the other arguments would be passed to this partial applied functions to execute them either you do that explicitly has illustrated above or your test library is doing that if you notice the service.updateTimeStamp body is being executed when you run your tests.