public DialogContextFactory(IDialogContextStore store, IFrameFactory frames, IBotToUser botToUser, IBotData botData)
 {
     SetField.NotNull(out this.store, nameof(store), store);
     SetField.NotNull(out this.frames, nameof(frames), frames);
     SetField.NotNull(out this.botToUser, nameof(botToUser), botToUser);
     SetField.NotNull(out this.botData, nameof(botData), botData);
 }
 public void Setup()
 {
     _dependencies      = new KarassDependencies();
     _frameFactory      = new FrameFactory(_dependencies);
     _karassFactory     = new KarassFactory();
     _mockFramesFactory = new MockFramesFactory(_frameFactory);
 }
示例#3
0
 public KanKan(IKarass karass, IFrameFactory frameFactory, IKarassMessage message = null)
 {
     _allKarassStates = new List <KarassState> {
         new KarassState(karass)
     };
     _message      = message ?? new KarassMessage();
     _frameFactory = frameFactory;
 }
 public void Setup()
 {
     _dependencies       = new KarassDependencies();
     _frameFactory       = new FrameFactory(_dependencies);
     _mockFramesFactory  = new MockFramesFactory(_frameFactory);
     _firstFrameRequest  = _mockFramesFactory.GetValidFrameRequest(FirstFrameSpy);
     _secondFrameRequest = _mockFramesFactory.GetValidFrameRequest(SecondFrameSpy);
 }
示例#5
0
 public void Setup()
 {
     _dependencies        = new KarassDependencies();
     _frameFactory        = new FrameFactory(_dependencies);
     _mockFramesFactory   = new MockFramesFactory(_frameFactory);
     _timesFirstFrameRun  = 0;
     _timesSecondFrameRun = 0;
 }
示例#6
0
        public KanKan(IKarass[] karass, IFrameFactory frameFactory)
        {
            _allKarassStates = karass.ToList().Select(_ => new KarassState(_)).ToList();

            for (int i = 0; i < karass.Length; i++)
            {
                _allKarassStates[i] = new KarassState(karass[i]);
            }

            _message      = new KarassMessage();
            _frameFactory = frameFactory;
        }
示例#7
0
 public Fiber(IFrameFactory <C> factory)
 {
     SetField.NotNull(out this.factory, nameof(factory), factory);
 }
示例#8
0
 public KarassFramesStub(List <FrameRequest[]> frames, IDependencies dependencies, IFrameFactory framesFactory) : base(
         new List <List <Action> >(),
         new List <List <Action> >(), frames)
 {
 }
示例#9
0
 public MockFramesFactory(IFrameFactory frameFactory)
 {
     _frameFactory = frameFactory;
     _dependencies = frameFactory.Dependencies;
 }
示例#10
0
 public Game(IFrameFactory frameFactory, int frameCount)
 {
     _frameFactory = frameFactory;
     _frameCount   = frameCount;
 }
示例#11
0
 public Game(IFrameFactory frameFactory)
 {
     _frameFactory = frameFactory;
 }
示例#12
0
 public Fiber(IFrameFactory <C> factory, IWaitFactory <C> waits)
 {
     SetField.NotNull(out this.frames, nameof(factory), factory);
     SetField.NotNull(out this.waits, nameof(waits), waits);
 }
示例#13
0
 public MessageDecoderFactory(IFrameFactory[] frameFactories,IMaskingService maskingService)
 {
     _frameFactories = frameFactories;
     _maskingService = maskingService;
 }
 public GameFactory(IFrameFactory frameFactory)
 {
     _frameCount = 10;
     _factory    = frameFactory;
 }