public UserRepositoryMock()
 {
     UserStatuses = new List <UserStatus>
     {
         UserStatus.CreateUsersStatus(new Guid().ToString(), new Guid()),
         UserStatus.CreateUsersStatus(new Guid().ToString(), new Guid())
     };
 }
Exemple #2
0
        public UserStatus CreateAndReturnLatestUser(string id, Guid factionId)
        {
            _repository.CreateUser(
                UserStatus.CreateUsersStatus(
                    id,
                    factionId
                    )
                );

            return(_repository.GetAllUsers().LastOrDefault());
        }
Exemple #3
0
            public PresenceRepositoryMock()
            {
                var users = new List <UserStatus>();

                users.Add(UserStatus.CreateUsersStatus(new Guid().ToString(), new Guid()));
                Presences = new List <Presence>
                {
                    Presence.CreatePresence(new Guid(), "B3", users),
                    Presence.CreatePresence(new Guid(), "B4", new List <UserStatus>())
                };

                Presences[0].Id = new Guid("4a1eacef-78ad-4da3-a94e-2cfd2400651a");
            }