17 lines
309 B
Go
17 lines
309 B
Go
|
|
package tests
|
||
|
|
|
||
|
|
import (
|
||
|
|
"time"
|
||
|
|
|
||
|
|
"github.com/yourorg/go-dw-platform/services/template-service/domain"
|
||
|
|
)
|
||
|
|
|
||
|
|
func NewTestOrder(orderID, customerID string, amount float64) *domain.Order {
|
||
|
|
return &domain.Order{
|
||
|
|
OrderID: orderID,
|
||
|
|
CustomerID: customerID,
|
||
|
|
Amount: amount,
|
||
|
|
CreatedAt: time.Now(),
|
||
|
|
}
|
||
|
|
}
|