Ejemplo n.º 1
0
        public void CanCompareBadges()
        {
            Badge instance = new Badge();
            EntityIdSetter.SetIdOf<int>(instance, 1);

            Badge instanceToCompareTo = new Badge();
            EntityIdSetter.SetIdOf<int>(instanceToCompareTo, 1);

            instance.ShouldEqual(instanceToCompareTo);
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Creates a valid, transient Badge; typical of something retrieved back from a form submission
        /// </summary>
        private Badge CreateTransientBadge()
        {
            Badge Badge = new Badge() {
                name = "TheBadge",
                count = 0,
                rank = BadgesRank.gold,
                description = "TheDesc"
            };

            return Badge;
        }