Esempio n. 1
0
 public DuelCommand(IRepository repository,
                    IChatUserCollection chatUserCollection,
                    DuelingSystem duelingSystem)
     : base(repository)
 {
     _operations.Add(new AcceptChallengeOperation(duelingSystem));
     _operations.Add(new StartChallengeOperation(duelingSystem, chatUserCollection));
 }
Esempio n. 2
0
 public AcceptChallengeOperation(DuelingSystem duelingSystem)
 {
     _duelingSystem = duelingSystem;
 }
Esempio n. 3
0
 public StartChallengeOperation(DuelingSystem duelingSystem, IChatUserCollection chatUserCollection)
 {
     _duelingSystem      = duelingSystem;
     _chatUserCollection = chatUserCollection;
 }