Inheritance: RevisableEntity
Esempio n. 1
0
 public void HasGetSet()
 {
     var value = new List<RoleGrant> { new RoleGrant() };
     var entity = new Role { Grants = value };
     entity.ShouldNotBeNull();
     entity.Grants.ShouldEqual(value);
 }
Esempio n. 2
0
 public void HasGetSet()
 {
     var value = new Role();
     var entity = new RoleGrant { Role = value };
     entity.ShouldNotBeNull();
     entity.Role.ShouldEqual(value);
 }
Esempio n. 3
0
        public static void AddExampleRoleData()
        {
            RemoveExampleRoleData();

            var db = ServiceProviderLocator.Current.GetService<IWrapDataConcerns>();

            var role = new Role
            {
                Name = TestRoleName,
                Description = "This role is for testing in the web facts project",
            };
            db.Commands.Create(role);
            db.UnitOfWork.SaveChanges();
        }