public LightsController(LIghtsRepositoryTest repository, ILogger <LightsController> logger, IMapper mapper, LightsContext ctx)
 {
     _repository = repository;
     _logger     = logger;
     _mapper     = mapper;
     _ctx        = ctx;
 }
        public LightsSteps(LightsContext lightsContext,
                           PointsContext pointsContext,
                           WorldContext worldContext,
                           VectorsContext vectorsContext)

        {
            _vectorsContext = vectorsContext;
            _worldContext   = worldContext;
            _pointsContext  = pointsContext;
            _lightsContext  = lightsContext;
        }
Beispiel #3
0
 public LightsController(LightsContext context)
 {
     _context = context;
     if (_context.LightsItems.Count() == 0)
     {
         _context.LightsItems.Add(new LightsItem {
             Name = "Item1"
         });
         _context.SaveChanges();
     }
 }
 public MaterialsSteps(MaterialsContext materialsContext,
                       LightsContext lightsContext,
                       ColorsContext colorContext,
                       ComputationsContext computationsContext,
                       SphereContext sphereContext)
 {
     _computationsContext = computationsContext;
     _sphereContext       = sphereContext;
     _colorsContext       = colorContext;
     _lightsContext       = lightsContext;
     _materialsContext    = materialsContext;
 }
Beispiel #5
0
 public WorldSteps(WorldContext worldContext,
                   SphereContext sphereContext,
                   RayContext rayContext,
                   ColorsContext colorContext,
                   PointsContext pointsContext,
                   LightsContext lightsContext,
                   PlanesContext planesContext,
                   ComputationsContext computationsContext)
 {
     _computationsContext = computationsContext;
     _planesContext       = planesContext;
     _lightsContext       = lightsContext;
     _pointsContext       = pointsContext;
     _colorContext        = colorContext;
     _rayContext          = rayContext;
     _sphereContext       = sphereContext;
     _worldContext        = worldContext;
 }