public Client()
        {
            var receiver = TransponderReceiverFactory.CreateTransponderDataReceiver();

            _convertFilter       = new ConvertFilter(receiver, new CompasCourse(), new Velocity());
            _airplaneValidation  = new AirplaneValidation(_convertFilter);
            _outputFilter        = new OutputFilter(_airplaneValidation);
            _separationCondition = new CheckSeparationCondition(_airplaneValidation);
        }
Beispiel #2
0
        public void Setup()
        {
            TestPlane1 = Substitute.For <Airplane>();
            TestPlane2 = Substitute.For <Airplane>();
            TestSeparationInAirspace = new List <Airplane>();
            plane = Substitute.For <IAirplaneValidation>();
            TestSeparationInAirspace.Add(TestPlane1);
            TestSeparationInAirspace.Add(TestPlane2);

            _planeSource = Substitute.For <IAirplaneValidation>();
            _uut         = new CheckSeparationCondition(_planeSource);
        }
Beispiel #3
0
 public ExcluirAirplaneUsecase(IAirplaneRepository repository, IAirplaneValidation validator, IUnitOfWork uow)
     : base(uow)
 {
     this._repository = repository;
     this._validator  = validator;
 }
Beispiel #4
0
        public OutputFilter(IAirplaneValidation airplaneValidation)
        {
            this._airplaneValidation = airplaneValidation;

            _airplaneValidation.ValidationEvent += HandleValidationEvent;
        }
Beispiel #5
0
 public OutputFilter(IAirplaneValidation airplaneValidation)
 {
     airplaneValidation.ValidationEvent += HandleValidationEvent;
 }
 public void Setup()
 {
     _planeSource = Substitute.For <IAirplaneValidation>();
     _uut         = new OutputFilter(_planeSource);
 }
Beispiel #7
0
        public AirplaneValidation(IAirplaneValidation receiver)
        {
            this._receiver = receiver;

            this._receiver.ValidationEvent += Validate;
        }
Beispiel #8
0
 public CheckSeparationCondition(IAirplaneValidation plane)
 {
     plane.ValidationEvent += HandleAirplaneValidationEvent;
     Conditions             = new List <SeparationCondition>();
 }