SQL/Orm AlbumRepository complete

This commit is contained in:
Deluan
2020-01-12 18:55:55 -05:00
committed by Deluan Quintão
parent 56273dd4d9
commit b9815fc653
9 changed files with 196 additions and 19 deletions
+7
View File
@@ -38,5 +38,12 @@ var _ = Describe("Initialize test DB", func() {
for _, a := range testArtists {
artistRepo.Put(&a)
}
albumRepository := NewAlbumRepository()
for _, a := range testAlbums {
err := albumRepository.Put(&a)
if err != nil {
panic(err)
}
}
})
})