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