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)); }
/// <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); } }
/// <summary> /// Initializes a new instance of the DeviceManager class. /// </summary> public DeviceManager() { this.dds = new DeviceDataSource(); }