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); }
// attempt at a fluent interface public EncounterViewData WithRole(Role role) { Role = role; return this; }