示例#1
0
        public void Instance_Implement_Interface_IHaveCreated()
        {
            var type = typeof(IHaveCreated);

            var role = new BlogRole();

            Assert.IsAssignableFrom(type, role);
        }
示例#2
0
        public void Instance_Inherits_From_IdentityRole_Of_Integer()
        {
            var type = typeof(IdentityRole <int>);

            var role = new BlogRole();

            Assert.IsAssignableFrom(type, role);
        }
示例#3
0
        public void Created()
        {
            var awesomeCreated = DateTime.Now;

            var role = new BlogRole {
                Created = awesomeCreated
            };

            Assert.Equal(expected: awesomeCreated, actual: role.Created);
        }
示例#4
0
        public void Have_ToUsers()
        {
            //Arrange
            var role = new BlogRole();

            //Act
            var toUsers = role.ToUsers;

            //Assert
            Assert.IsAssignableFrom <IEnumerable <BlogUserToRole> >(toUsers);
        }