Beispiel #1
0
func Test_Item(t *testing.T) {
	name := "test_item"
	template := database.NewTemplate(name)
	item := database.NewItem(template.GetId())

	testutils.Assert(item.GetName() == name, t, "Item didn't get created with correct name", name, item.GetName())
}
Beispiel #2
0
func CreateItem(templateId types.Id) types.Item {
	return db.NewItem(templateId)
}