public void TestSetup() { _mocks = new MockRepository(); _mockAuction = _mocks.StrictMock <IAuction>(); _mockSniperListener = _mocks.StrictMock <ISniperListener>(); _sniper = new Domain.AuctionSniper(_mockAuction, _mockSniperListener); }
public AuctionSniperService(string itemId, Auction auction, ISniperListener listener) { _itemId = itemId; _auction = auction; _listener = listener; _snapshot = SniperSnapshot.Joining(itemId); _listener.AddSniper(_snapshot); }
public void Setup() { sniperListener = Substitute.For <ISniperListener>(); auction = Substitute.For <IAuction>(); item = new Item("test item", Int32.MaxValue); sniper = new AuctionSniper(item, auction); sniper.AddSniperListener(sniperListener); }
public XMPPAuction(IChat inChat, ISniperListener inListener) { this.NotToBeGCD = inChat; this.NotToBeGCD.Translator = new AuctionMessageTranslator( inChat.FromId, new AuctionSniper.Core.AuctionSniper(this, inListener) ); mListener = inListener; }
public void Initialize() { sniperListener = A.Fake <ISniperListener>(); auction = A.Fake <Auction>(x => x.WithArgumentsForConstructor(new object[] { string.Empty })); sniper = new AuctionSniperService(ITEM_ID, auction, sniperListener); }
public void AddSniperListener(ISniperListener sniperListener) { _sniperListener = sniperListener; }
public AuctionSniper(ISniperListener sniperListener, IAuction auction) { this.sniperListener = sniperListener; this.auction = auction; }
public AuctionSniper(IAuction inAuction, ISniperListener inListener) { mAuction = inAuction; mListener = inListener; }
public void TestSetup() { _mocks = new MockRepository(); _mockAuction = _mocks.StrictMock<IAuction>(); _mockSniperListener = _mocks.StrictMock<ISniperListener>(); _sniper = new Domain.AuctionSniper(_mockAuction, _mockSniperListener); }
public void AddSniperListener(ISniperListener sniperListener) { this.sniperListener = sniperListener; }
public AuctionSniper(IAuction auction, ISniperListener sniperListener) { _auction = auction; _sniperListener = sniperListener; }
public void Initialize() { sniperListener = A.Fake<ISniperListener>(); auction = A.Fake<Auction>(x => x.WithArgumentsForConstructor(new object[] {string.Empty})); sniper = new AuctionSniperService(ITEM_ID, auction, sniperListener); }