Esempio n. 1
0
 /// <summary>
 ///     Initializes a new instance of the <see cref="RoomTickerAddedNotification"/> class.
 /// </summary>
 /// <param name="roomName">The name of the chat room to which the ticker was added.</param>
 /// <param name="ticker">The ticker.</param>
 public RoomTickerAddedNotification(
     string roomName,
     RoomTicker ticker)
 {
     RoomName = roomName;
     Ticker   = ticker;
 }
Esempio n. 2
0
        public void Instantiates_With_The_Given_Data(string username, string message)
        {
            var f = default(RoomTicker);

            var ex = Record.Exception(() => f = new RoomTicker(username, message));

            Assert.Null(ex);

            Assert.Equal(username, f.Username);
            Assert.Equal(message, f.Message);
        }
Esempio n. 3
0
        public void RoomTickerAddedEventArgs_Instantiates_With_Expected_Values(string roomName, RoomTicker ticker)
        {
            var x = new RoomTickerAddedEventArgs(roomName, ticker);

            Assert.Equal(roomName, x.RoomName);
            Assert.Equal(ticker, x.Ticker);
        }
Esempio n. 4
0
 /// <summary>
 ///     Initializes a new instance of the <see cref="RoomTickerAddedEventArgs"/> class.
 /// </summary>
 /// <param name="roomName">The name of the chat room to which the ticker was added.</param>
 /// <param name="ticker">The ticker.</param>
 public RoomTickerAddedEventArgs(string roomName, RoomTicker ticker)
     : base(roomName)
 {
     Ticker = ticker;
 }