Introduced interfaces for all repositories, completely isolating the persistence layer from the repositories usage and specification
This commit is contained in:
@@ -19,8 +19,8 @@ func shouldBeEqual(actualStruct interface{}, expectedStruct ...interface{}) stri
|
||||
return ShouldEqual(actual, expected)
|
||||
}
|
||||
|
||||
func createRepo() *BaseRepository{
|
||||
repo := &BaseRepository{}
|
||||
func createRepo() *baseRepository {
|
||||
repo := &baseRepository{}
|
||||
repo.init("test", &TestEntity{})
|
||||
return repo
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user