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);
        }
예제 #2
0
 public VehicleRepository(IVehicleContext dbContext)
 {
     _context = dbContext;
 }
예제 #3
0
 public VehicleRepository(IVehicleContext context)
 {
     this._context = context;
 }
예제 #4
0
 public VehicleRepository(IVehicleContext dbContext)
 {
     this.dbContext = dbContext;
 }
예제 #5
0
 public UnitOfWork(IVehicleContext context)
 {
     Context = context;
 }
예제 #6
0
 public Reporsitory(IVehicleContext context)//dozvoljen pristup bazi podatka dependency injection
 {
     this.Context = context;
 }
예제 #7
0
 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));
 }