示例#1
0
        public virtual void Init()
        {
            //Reset all fake event generators to produce empty events
            FakeOperationalEventGenerator.SetEvents(new List <FakeOperationalEvent>());
            FakeSnapshotEventGenerator.SetEvents(new List <FakePeriodicEvent>());
            FakeTriggeredEventGenerator.SetEvents(new List <FakeTriggeredEvent>());

            //Create a new twin and iot hub client
            FakesEventsFactory = new FakeEventsFactory();
            ClientMock         = (ModuleClientMock)ModuleClientProvider.GetClient();
            Twin = new FakeTwinHelper(ClientMock);
        }
示例#2
0
        public virtual void Init()
        {
            var clientMock = (ModuleClientMock)ModuleClientProvider.GetClient();

            Twin = new FakeTwinHelper(clientMock);
        }