コード例 #1
0
        public void When_TheDataSourceIsCreated_Then_ItShouldListenOnTheIPv4AnyAddress()
        {
            var receiver = Mock.Of <IMulticastSacnReceiver>();
            var factory  = Mock.Of <IDmxWriterFactory>();
            var source   = new DeviceDataSource(factory, receiver);

            Mock.Get(receiver)
            .Verify(x => x.Listen(IPAddress.Any));
        }
コード例 #2
0
 /// <summary>
 /// Initializes a new instance of the C2dmConnection class.
 /// </summary>
 /// <param name="retries"></param>
 public C2dmConnection(int retries)
 {
     this.numOfRetries = retries;
     this.sds          = new SubscriptionDataSource();
     this.dds          = new DeviceDataSource();
     if (this.authKey == null)
     {
         //Uncomment this after registering an account and configuring Google C2DM
         //this.Login(Username, Password);
     }
 }
コード例 #3
0
 /// <summary>
 /// Initializes a new instance of the DeviceManager class.
 /// </summary>
 public DeviceManager()
 {
     this.dds = new DeviceDataSource();
 }