public HomeAutomationNetworkContext(RoomieEngine engine, ThreadPool threadPool, IDeviceHistory deviceHistory, INetworkHistory networkHistory) { _engine = engine; ThreadPool = threadPool; //TODO: ninject? History = new MasterHistory(deviceHistory, networkHistory); Triggers = new TriggerCollection(); }
public void SetUp() { PopulateIndividualEventLists(); _deviceHistoryMock = new Mock<IDeviceHistory>(); _deviceHistoryMock.Setup(x => x.GetEnumerator()).Returns(_deviceEvents.GetEnumerator()); _networkHistoryMock = new Mock<INetworkHistory>(); _networkHistoryMock.Setup(x => x.GetEnumerator()).Returns(_networkEvents.GetEnumerator()); _history = new MasterHistory(_deviceHistoryMock.Object, _networkHistoryMock.Object); }