Ejemplo n.º 1
0
        public void GetPublicProfiles()
        {
            var appId = Guid.NewGuid();
            var core  = new UserCore();

            for (int i = 0; i < 5; i++)
            {
                var page = new ProfilePage()
                {
                    ApplicationIdentifier = appId,
                    Handle          = Guid.NewGuid().ToString(),
                    OwnerIdentifier = Guid.NewGuid(),
                };

                core.Save(page);
            }
            var app = new Application()
            {
                Identifier = appId,
            };

            var profiles = core.PublicProfiles(app);

            Assert.AreEqual <int>(5, profiles.Count());
        }
Ejemplo n.º 2
0
        public void GetProfilePagesApplicationIdentifierEmpty()
        {
            var core = new UserCore();

            core.PublicProfiles(new Application());
        }
Ejemplo n.º 3
0
        public void GetProfilePageApplicationNull()
        {
            var core = new UserCore();

            core.PublicProfiles(null);
        }