public void GetContactsEmptyUserIdentifier()
        {
            var core = new UserCore();
            var data = this.UserData();

            data.Identifier = Guid.Empty;
            core.GetContacts(data);
        }
        public void GetContacts()
        {
            var user   = this.UserData();
            var random = new Random();
            var count  = random.Next(50);
            var core   = new UserCore();

            Parallel.For(
                0,
                count,
                (a, b) =>
            {
                var c   = this.Contact();
                c.Owner = user;
                core.Save(c);
            });
            var contacts = core.GetContacts(user);

            Assert.AreEqual <int>(count, contacts.Count());
        }
        public void GetContactsNull()
        {
            var core = new UserCore();

            core.GetContacts(null);
        }