示例#1
0
 public static void Initalizer(TestContext context)
 {
     ira = new DataAccess();
     rs  = new RatingService(ira);
 }
示例#2
0
 public MoviesController(IMovieAccess moviesAccess, IRatingAccess ratingAccess)
 {
     _movieAccess  = moviesAccess ?? throw new ArgumentNullException(nameof(moviesAccess));
     _ratingAccess = ratingAccess ?? throw new ArgumentNullException(nameof(ratingAccess));
 }
 public RatingService(IRatingAccess ra)
 {
     mratingAccess = ra;
 }