public PlanetController()
 {
     context            = new ApplicationDbContext();
     planetRepository   = new PlanetRepository(context);
     climateRepository  = new ClimateRepository(context);
     terrainRepository  = new TerrainRepository(context);
     filePathRepository = new FilePathRepository(context);
     unitOfWork         = new UnitOfWork(context);
 }
        public void SetUp()
        {
            var builder = new ConfigurationBuilder();

            builder.AddEnvironmentVariables("CLIMATE_COMPARISON_");
            var configuration = builder.Build();

            var connectionProvider = new CloudTableClientProvider(configuration);

            _climateRepository = new ClimateRepository(connectionProvider);
        }
 public DatabaseStatisticController()
 {
     context = new ApplicationDbContext();
     ApplicationUserRepository    = new ApplicationUserRepository(context);
     climateRepository            = new ClimateRepository(context);
     terrainRepository            = new TerrainRepository(context);
     ticketRepository             = new TicketRepository(context);
     flightRepository             = new FlightRepository(context);
     orderRepository              = new OrderRepository(context);
     raceRepository               = new RaceRepository(context);
     raceClassificationRepository = new RaceClassificationRepository(context);
     starshipRepository           = new StarshipRepository(context);
     flightPathRepository         = new FlightPathRepository(context);
     planetRepository             = new PlanetRepository(context);
 }
示例#4
0
 public ClimateController()
 {
     context           = new ApplicationDbContext();
     climateRepository = new ClimateRepository(context);
     unitOfWork        = new UnitOfWork(context);
 }
 public ClimateController(ClimateRepository climateRepository)
 {
     _climateRepository = climateRepository ?? throw new System.ArgumentNullException(nameof(climateRepository));
 }