void JoinAuction()
 {
     xmppClient.Login();
         var itemJid = new Jid(this.ItemId, XMPP_HOST, RESOURCE);
         IAuction auction = new XmppAuction(xmppClient, itemJid);
         var auctionMessageTranslator = new AuctionMessageTranslator(new Domain.AuctionSniper(this, auction));
         xmppClient.OnChatMessageReceived += (s, msg) => auctionMessageTranslator.Process(msg);
         auction.Join();
     ShowStatus("joining");
 }
Esempio n. 2
0
        void JoinAuction()
        {
            xmppClient.Login();
            var      itemJid = new Jid(this.ItemId, XMPP_HOST, RESOURCE);
            IAuction auction = new XmppAuction(xmppClient, itemJid);
            var      auctionMessageTranslator = new AuctionMessageTranslator(new Domain.AuctionSniper(this, auction));

            xmppClient.OnChatMessageReceived += (s, msg) => auctionMessageTranslator.Process(msg);
            auction.Join();
            ShowStatus("joining");
        }
        public void Setup()
        {
            listenerMock        = Substitute.For <IAuctionEventListener>();
            failureReporterMock = Substitute.For <IXMPPFailureReporter>();
            loggerMock          = Substitute.For <ILogger>();

            var list = new List <IAuctionEventListener>();

            list.Add(listenerMock);

            translator = new AuctionMessageTranslator(SNIPER_ID, list, failureReporterMock);
        }
 public void Before()
 {
     mockery = new MockFactory();
     auctionEventListener     = mockery.CreateMock <IAuctionEventListener>();
     auctionMessageTranslator = new AuctionMessageTranslator(auctionEventListener.MockObject);
 }
Esempio n. 5
0
 public void Initialize()
 {
     _mocks        = new MockRepository();
     _mockListener = _mocks.StrictMock <IAuctionEventListener>();
     _translator   = new AuctionMessageTranslator(_sniperId, _mockListener);
 }
Esempio n. 6
0
 public void TestSetup()
 {
     _mocks        = new MockRepository();
     _mockListener = _mocks.StrictMock <IAuctionEventListener>();
     _translator   = new AuctionMessageTranslator(SNIPER_ID, _mockListener);
 }
 public void Before()
 {
     mockery = new MockFactory();
     auctionEventListener = mockery.CreateMock<IAuctionEventListener>();
     auctionMessageTranslator = new AuctionMessageTranslator(auctionEventListener.MockObject);
 }
Esempio n. 8
0
 public void Initialize()
 {
     auctionEventListener = A.Fake <IAuctionEventListener>();
     amt = new AuctionMessageTranslator(SNIPER_ID, auctionEventListener);
 }
Esempio n. 9
0
 public void Setup()
 {
     _mock       = new Mock <IAuctionEventListener>();
     _listener   = _mock.Object;
     _translator = new AuctionMessageTranslator(SniperId, _listener);
 }