public void Create(Guid id, string name) { Contract.Requires(!id.Equals(Guid.Empty), "Parameter 'id' should not be empty."); Contract.Requires(!string.IsNullOrEmpty(name), "Parameter 'name' should not be null or empty"); _eventSource.Apply(new PersonCreated(id, name)); }