public UnifiedAssertDifferentLsidOnLastTwoCommandsOperation Build(BsonDocument arguments) { EventCapturer eventCapturer = null; foreach (var argument in arguments) { switch (argument.Name) { case "client": eventCapturer = _entityMap.GetEventCapturer(argument.Value.AsString); break; default: throw new FormatException($"Invalid AssertDifferentLsidOnLastTwoCommandsOperation argument name: '{argument.Name}'."); } } return(new UnifiedAssertDifferentLsidOnLastTwoCommandsOperation(eventCapturer)); }