2024-04-01 10:40:35 -04:00
|
|
|
defmodule Chronoscope.DateTime.Behaviour do
|
2024-03-31 11:57:21 -04:00
|
|
|
@callback utc_now :: DateTime.t()
|
|
|
|
end
|
|
|
|
|
2024-04-01 10:40:35 -04:00
|
|
|
defmodule Chronoscope.DateTime.Stub do
|
|
|
|
@behaviour Chronoscope.DateTime.Behaviour
|
|
|
|
def utc_now(), do: DateTime.utc_now()
|
|
|
|
end
|
|
|
|
|
2024-03-30 11:32:28 -04:00
|
|
|
Mox.defmock(Chronoscope.NTS.BehaviourMock, for: Chronoscope.NTS.Behaviour)
|
2024-04-01 10:40:35 -04:00
|
|
|
Mox.defmock(Chronoscope.NTS.DateTimeMock, for: Chronoscope.DateTime.Behaviour)
|