コード例 #1
0
 public TourPackageUnitOfWork(string connectionString, string migrationAssemblyName)
     : base(connectionString, migrationAssemblyName)
 {
     TourPackageRepository = new TourPackageRepository(_dbContext);
     SpotRepository        = new SpotRepository(_dbContext);
     LoveRepository        = new LoveRepository(_dbContext);
 }
コード例 #2
0
 public SpotService(SpotRepository spotRepository)
 {
     SpotRepository = spotRepository;
 }
コード例 #3
0
 public SpotUnitOfWork(string connectionString, string migrationAssemblyName)
     : base(connectionString, migrationAssemblyName)
 {
     SpotRepository = new SpotRepository(_dbContext);
 }
コード例 #4
0
 public SpotService(SpotRepository repository, IFacebookClient facebookClient, ITwitterClient twitterClient)
 {
     _repository     = repository;
     _facebookClient = facebookClient;
     _twitterClient  = twitterClient;
 }