Introduced interfaces for all repositories, completely isolating the persistence layer from the repositories usage and specification

This commit is contained in:
Deluan
2016-03-02 09:33:49 -05:00
parent 272a499c7e
commit 300ed0d9a4
15 changed files with 83 additions and 48 deletions
+2 -2
View File
@@ -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
}