public void WhenThereIsVehicleContextForVehicle_And_DeployPointOnSurface__VehicleContextShouldNotBeNull() { var vehicleMock = new Mock <Rover>(It.IsAny <int>(), It.IsAny <int>(), It.IsAny <CompassDirections>()); var sut = new VehicleContextFactory(); IVehicleContext vehicleContext = sut.Generate(_surfaceMock.Object, vehicleMock.Object); Assert.NotNull(vehicleContext); Assert.True(vehicleContext is IRoverContext); }
public VehicleRepository(IVehicleContext dbContext) { _context = dbContext; }
public VehicleRepository(IVehicleContext context) { this._context = context; }
public VehicleRepository(IVehicleContext dbContext) { this.dbContext = dbContext; }
public UnitOfWork(IVehicleContext context) { Context = context; }
public Reporsitory(IVehicleContext context)//dozvoljen pristup bazi podatka dependency injection { this.Context = context; }
public Repository(IVehicleContext context, IUnitOfWorkFactory unitOfWorkFactory) { this.Context = context; this.UnitOfWorkFactory = unitOfWorkFactory; }
public GenericRepository(IVehicleContext context) { this._context = context; }
public VehicleRepository(IVehicleContext context) { _context = context ?? throw new ArgumentNullException(nameof(context)); }