Exemplo n.º 1
0
        public Circle(CircleId id, CircleName name, User owner, List <UserId> members, DateTime created)
        {
            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));
            }

            this.id      = id;
            this.name    = name;
            this.owner   = owner;
            this.members = members;
            this.created = created;
        }
Exemplo n.º 2
0
        public void ChangeName(CircleName name)
        {
            if (name == null)
            {
                throw new ArgumentNullException(nameof(name));
            }

            this.name = name;
        }
Exemplo n.º 3
0
        public Circle(CircleId id, CircleName name, User owner, List <User> 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;
        }