Пример #1
0
        public void Instance_Inherits_From_IdentityRoleClaim_of_Integer()
        {
            var type = typeof(IdentityRoleClaim <int>);

            var claim = new BlogRoleClaim();

            Assert.IsAssignableFrom(type, claim);
        }
Пример #2
0
        public void Instance_Implement_Interface_IHaveCreated()
        {
            var type = typeof(IHaveCreated);

            var claim = new BlogRoleClaim();

            Assert.IsAssignableFrom(type, claim);
        }
Пример #3
0
        public void Created()
        {
            var awesomeCreated = DateTime.Now;

            var claim = new BlogRoleClaim {
                Created = awesomeCreated
            };

            Assert.Equal(expected: awesomeCreated, actual: claim.Created);
        }