Exemple #1
0
 public BrokenIncubatorTests()
 {
     _eggGenerator = Substitute.For <IEggGenerator>();
     _eggGetter    = Substitute.For <IEggGetter>();
     _mediator     = Substitute.For <IMediator>();
     _incubator    = new BrokenIncubator(_eggGenerator, _eggGetter, _mediator);
 }
        protected Incubator(IEggGenerator eggGenerator,
                            IEggGetter eggGetter,
                            IMediator mediator,
                            int secondsToIncubate)
        {
            _eggGenerator = eggGenerator;
            _eggGetter    = eggGetter;
            _mediator     = mediator;

            SecondsToIncubate = secondsToIncubate;
        }
 public DefaultIncubator(IEggGenerator eggGenerator,
                         IEggGetter eggGetter,
                         IMediator mediator) : base(eggGenerator, eggGetter, mediator, 5)
 {
 }
Exemple #4
0
 public TurboIncubator(IEggGenerator eggGenerator,
                       IEggGetter eggGetter,
                       IMediator mediator) : base(eggGenerator, eggGetter, mediator, 2)
 {
 }
Exemple #5
0
 public DefaultEggGeneratorTests()
 {
     _repository   = Substitute.For <IEggRepository>();
     _eggGenerator = new DefaultEggGenerator(_repository);
 }
Exemple #6
0
 public BrokenIncubator(IEggGenerator eggGenerator,
                        IEggGetter eggGetter,
                        IMediator mediator) : base(eggGenerator, eggGetter, mediator, 10)
 {
 }