コード例 #1
0
 public static IShape Create(IIntersectionService intersectionService, IDimensions dimensions)
 {
     return(dimensions switch
     {
         CubeDimensions cubeDimensions => new Cube(intersectionService, cubeDimensions),
         _ => null
     });
コード例 #2
0
ファイル: MapController.cs プロジェクト: kevkov/SpectrumHack
 public MapController(IPollutionRepository pollutionRepo, ISchoolRepository schoolRepo,
                      IJourneyRepository journeyRepo, IIntersectionService interactionService,
                      IDirectionService directionService)
 {
     _pollutionRepo      = pollutionRepo;
     _schoolRepo         = schoolRepo;
     _journeyRepo        = journeyRepo;
     _interactionService = interactionService;
     _directionService   = directionService;
 }
コード例 #3
0
 public void sup()
 {
     sut = new IntersectionService();
 }
コード例 #4
0
 public Cube(IIntersectionService intersectionService, CubeDimensions cubeDimensions) : base(intersectionService, cubeDimensions)
 {
 }
コード例 #5
0
 protected BaseShape(IIntersectionService intersectionService, T dimensions)
 {
     IntersectionService = intersectionService;
     Dimensions          = dimensions;
 }
コード例 #6
0
 public CubesController(ILogger <CubesController> logger, IParserService parserService, IIntersectionService intersectionService)
 {
     _logger              = logger;
     _parserService       = parserService;
     _intersectionService = intersectionService;
 }
コード例 #7
0
 private static void DependencyInyection()
 {
     _intersectionService = new IntersectionService();
 }