Пример #1
0
func BeforeEach() {
	mongo, _ := datasource.NewMongo("config.yml", "staging")
	articleService = ArticleService{MongoService: MongoService{Mongo: *mongo}}
}
Пример #2
0
func UserBeforeEach() {
	mongo, _ := datasource.NewMongo("config.yml", "staging")
	userService = UserService{MongoService: MongoService{Mongo: *mongo}}
}