public void CopiedInputEventHandlerTest() { //given Assert.AreEqual("out", AnotherFakeExternalSource.Connections.First(c => c.Name == "knopje").CurrentState.Name); //when AnotherFakeExternalSource.FireInputEvent("knopje", "in"); AnotherFakeExternalSource.FireInputEvent("knopje", "out"); //then Assert.That("out" == FakeExternalSource.Connections.First(c => c.Name == "knopje").CurrentState.Name, Is.True.After(100)); }
public void Init() { FakeExternalSource = new FakeExternalSource(); AnotherFakeExternalSource = new AnotherFakeExternalSource(); Distributor = new Distributor(new IExternalSource[] { FakeExternalSource, AnotherFakeExternalSource }, new[] { new FakeRuleStore() }); }