Beispiel #1
0
 public University(string name, string country) : this()
 {
     Name      = name.Replace("+", "-");
     Country   = country;
     RowDetail = new DomainTimeStamp();
     State     = ItemState.Pending;
 }
Beispiel #2
0
 public UserLocation(User user, string ip, string country, string fingerPrint, string userAgent)
 {
     User        = user;
     Ip          = ip;
     Country     = country;
     TimeStamp   = new DomainTimeStamp();
     FingerPrint = fingerPrint;
     UserAgent   = userAgent;
 }
Beispiel #3
0
        public StudyRoom(Tutor tutor, User user, string onlineDocumentUrl)
        {
            _users = new[]
            {
                new StudyRoomUser(tutor.User, this),
                new StudyRoomUser(user, this)
            };
            Tutor             = tutor;
            Identifier        = ChatRoom.BuildChatRoomIdentifier(new[] { tutor.Id, user.Id });
            OnlineDocumentUrl = onlineDocumentUrl;
            Type     = StudyRoomType.PeerToPeer;
            DateTime = new DomainTimeStamp();



            AddEvent(new StudyRoomCreatedEvent(this));
        }
Beispiel #4
0
        //public Vote(User user, Answer answer, VoteType voteType) : this()
        //{
        //    User = user;
        //    Answer = answer;
        //    Question = answer.Question;
        //    VoteType = voteType;
        //}

        //public Vote(User user, Question question, VoteType voteType) : this()
        //{
        //    User = user;
        //    Question = question;
        //    VoteType = voteType;
        //}

        protected Vote()
        {
            TimeStamp = new DomainTimeStamp();
        }
Beispiel #5
0
 protected Document()
 {
     TimeStamp = new DomainTimeStamp();
 }