public bool Equals(ConsumerStub consumer) { if (consumer == null) { return false; } return this.Name == consumer.Name && this.Id == consumer.Id; }