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