Inheritance: RevisableEntity
Exemplo 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);
 }
Exemplo n.º 2
0
 public void HasGetSet()
 {
     var value = new Role();
     var entity = new RoleGrant { Role = value };
     entity.ShouldNotBeNull();
     entity.Role.ShouldEqual(value);
 }
Exemplo 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();
        }