public RemarkStatistics(Guid remarkId, string category, string authorId, string authorName, DateTime createdAt, string state, double latitude, double longitude, string address = null, string description = null, IEnumerable <string> tags = null) { RemarkId = remarkId; Category = category; Author = new User(authorId, authorName); CreatedAt = createdAt; Description = description; Tags = tags ?? new HashSet <string>(); Location = new Location(latitude, longitude, address); var remarkState = new RemarkState(state, authorId, location: Location); AddState(remarkState); }
public void AddState(RemarkState state) { State = state; _states.Add(state); }