public AdicionarDroneSteps(ScenarioContext scenarioContext)
        {
            _scenarioContext = scenarioContext;

            _droneRepository = new MockDroneRepository();
            _droneService    = null;
            _droneFacade     = new DroneFacade(_droneService, _droneRepository);
        }
        public AdicionarDroneSteps(ScenarioContext scenarioContext)
        {
            _scenarioContext = scenarioContext;
            _context         = ContextProvider <Drone> .GetContext(null);

            _droneStatusExecutor = Substitute.For <ICommandExecutor <DroneStatusResult> >();
            _statusDroneExecutor = Substitute.For <ICommandExecutor <StatusDroneDto> >();
            _droneRepository     = new DroneRepository(_context, _statusDroneExecutor, _droneStatusExecutor);
            _droneService        = null;
            _droneFacade         = new DroneFacade(_droneService, _droneRepository);
        }
Example #3
0
 /// <summary>
 /// Constructor
 /// </summary>
 /// <param name="droneFacade"></param>
 public DronesController(IDroneFacade droneFacade)
 {
     _droneFacade = droneFacade;
 }
Example #4
0
#pragma warning disable CS1591 // Missing XML comment for publicly visible type or member
        public DronesController(IDroneRepository droneRepository, IDroneFacade droneFacade)
#pragma warning restore CS1591 // Missing XML comment for publicly visible type or member
        {
            _droneFacade     = droneFacade;
            _droneRepository = droneRepository;
        }
 public DroneControllerTests()
 {
     _droneFacade = Substitute.For <IDroneFacade>();
 }