private void AssertCommandAspects(BsonDocument actualCommand, BsonDocument aspects) { RecursiveFieldSetter.SetAll(actualCommand, "getMore", 42L); RecursiveFieldSetter.SetAll(actualCommand, "afterClusterTime", 42); foreach (var aspect in aspects) { AssertCommandAspect(actualCommand, aspect.Name, aspect.Value); } }
private void AssertCommandAspects(BsonDocument actualCommand, BsonDocument aspects) { foreach (var placeholder in _placeholders) { RecursiveFieldSetter.SetAll(actualCommand, placeholder.Key, placeholder.Value); } foreach (var aspect in aspects) { AssertCommandAspect(actualCommand, aspect.Name, aspect.Value); } }