コード例 #1
0
        public static ReviewService Create(PleyContext context)
        {
            var logger        = new Mock <ILogger <ReviewService> >();
            var restaurantSvc = RestaurantServiceFactory.Create(context);

            return(new ReviewService(context, restaurantSvc, logger.Object));
        }
コード例 #2
0
 public RestaurantServiceTest()
 {
     _ctx = PleyContextFactory.Create();
     _svc = RestaurantServiceFactory.Create(_ctx);
 }