private void CreateNewDevicePropertiesActor()
        {
            // Set up the mock Instance to throw an exception if
            // the instance is initialized more than once.
            this.isInstanceInitialized = false;
            this.mockInstance.Setup(
                x => x.InitOnce(
                    It.IsAny <string>(),
                    It.IsAny <string>(),
                    It.IsAny <int>()))
            .Callback(() =>
            {
                if (this.isInstanceInitialized)
                {
                    throw new ApplicationException("Multiple initializations attempted.");
                }
                this.isInstanceInitialized = true;
            });

            this.target = new DevicePropertiesActor(
                this.logger.Object,
                this.actorsLogger.Object,
                this.updatePropertiesLogic.Object,
                this.deviceTagLogic.Object,
                this.mockInstance.Object);
        }
 private void CreateNewDevicePropertiesActor()
 {
     this.target = new DevicePropertiesActor(
         this.logger.Object,
         this.actorsLogger.Object,
         this.rateLimiting.Object,
         this.updatePropertiesLogic.Object,
         this.deviceTagLogic.Object);
 }