Example #1
0
        internal void ChangeName(CircleName name)
        {
            if (name == null)
            {
                throw new ArgumentNullException(nameof(name));
            }

            Name = name;
        }
Example #2
0
        public Circle(CircleId id, CircleName name, UserId owner, List <UserId> members)
        {
            if (id == null)
            {
                throw new ArgumentNullException(nameof(id));
            }
            if (name == null)
            {
                throw new ArgumentNullException(nameof(name));
            }
            if (owner == null)
            {
                throw new ArgumentNullException(nameof(owner));
            }
            if (members == null)
            {
                throw new ArgumentNullException(nameof(members));
            }

            Id      = id;
            Name    = name;
            Owner   = owner;
            Members = members;
        }