Exemple #1
0
 public WheelOfFate(ISupportEngineersRepository supportEngineersRepository,
                    ISupportEngineersFactory supportEngineersFactory,
                    ISupportEngineerFilterChainFactory supportEngineersFilterChainFactory)
 {
     _supportEngineersRepository         = supportEngineersRepository;
     _supportEngineersFactory            = supportEngineersFactory;
     _supportEngineersFilterChainFactory = supportEngineersFilterChainFactory;
 }
 public WheelOfFateBuilder()
 {
     _supportEngineersRepository = A.Fake <ISupportEngineersRepository>();
     _supportEngineersFactory    = A.Fake <ISupportEngineersFactory>();
     _supportEngineersFromRepo   = new SupportEngineerMocksBuilder()
                                   .WithEngineersWhoHadShiftYesterday(5)
                                   .Build();
     _supportEngineersAfterFilter = new SupportEngineerMocksBuilder()
                                    .WithEngineersWhoDidntHadShiftYesterday(5)
                                    .Build();
     _supportEngineerFilterChainFactory = A.Fake <ISupportEngineerFilterChainFactory>();
 }
 public WheelOfFateBuilder WihtSupportEngineersFactory(ISupportEngineersFactory supportEngineersRepository)
 {
     _supportEngineersFactory = supportEngineersRepository;
     return(this);
 }