Hi, I have a code like this
func (bwc *BaseWorkerConfiguration) RegisterTemporalEntities(clientTemporal client.Client, taskQueue string) worker.Worker {
worker := worker.New(clientTemporal, taskQueue, worker.Options{})
worker.RegisterWorkflow(bwc.workflow.MyAwesomeWorkflow)
worker.RegisterActivity(bwc.myFirstActivity)
worker.RegisterActivity(bwc.mySecondActivity)
return worker
}
and I want to test that the returned worker have registered the expected workflow/activities. I am having the problem that I need to pass a mocking of parameter clientTemporal, for this I am using mocks.Client struct, but when worker.New is called it is raising “Client must be created with client.Dial() or client.NewLazyClient()”. I need a help to test this function, what could be the best approach?