コード例 #1
0
        public void CanCompareUsers()
        {
            Role instance = new Role() { Name = "Admin"};
            EntityIdSetter.SetIdOf(instance, 1);

            Role instanceToCompareTo = new Role() { Name = "Admin" };
            EntityIdSetter.SetIdOf(instanceToCompareTo, 1);

            instance.ShouldEqual(instanceToCompareTo);
        }
コード例 #2
0
 // attempt at a fluent interface
 public EncounterViewData WithRole(Role role)
 {
     Role = role;
     return this;
 }