public static IShape Create(IIntersectionService intersectionService, IDimensions dimensions) { return(dimensions switch { CubeDimensions cubeDimensions => new Cube(intersectionService, cubeDimensions), _ => null });
public MapController(IPollutionRepository pollutionRepo, ISchoolRepository schoolRepo, IJourneyRepository journeyRepo, IIntersectionService interactionService, IDirectionService directionService) { _pollutionRepo = pollutionRepo; _schoolRepo = schoolRepo; _journeyRepo = journeyRepo; _interactionService = interactionService; _directionService = directionService; }
public void sup() { sut = new IntersectionService(); }
public Cube(IIntersectionService intersectionService, CubeDimensions cubeDimensions) : base(intersectionService, cubeDimensions) { }
protected BaseShape(IIntersectionService intersectionService, T dimensions) { IntersectionService = intersectionService; Dimensions = dimensions; }
public CubesController(ILogger <CubesController> logger, IParserService parserService, IIntersectionService intersectionService) { _logger = logger; _parserService = parserService; _intersectionService = intersectionService; }
private static void DependencyInyection() { _intersectionService = new IntersectionService(); }