public void Should_push_full_tree_when_no_scope() { var tree = new ObjectNode(new [] { new ValueNode("key", "1") }); testSource.PushNewConfiguration(tree); var source = new ScopedSource(testSource); var result = source.Observe().WaitFirstValue(100.Milliseconds()); result.Should().Be((tree, null)); }
public void UpdateConfig(CustomConfig newConfig) { source.PushNewConfiguration(CreateObjectNode(newConfig)); Thread.Sleep(200); }