[TestMethod] public void ValidProviderRoleTypeTest()
        {
            Assert.IsNull(Obj.ValidProviderRoleType);
            var r = RoleType.Random();

            r.UniqueId = Obj.ValidProviderRoleTypeId;
            RoleTypes.Instance.Add(r);
            Assert.AreEqual(r, Obj.ValidProviderRoleType);
        }
Beispiel #2
0
        public void RoleTypeTest()
        {
            Assert.IsNull(Obj.RoleType);
            RoleTypes.Instance.AddRange(RoleTypes.Random());
            var t = RoleType.Random();

            t.UniqueId = Obj.RoleTypeId;
            RoleTypes.Instance.Add(t);
            Assert.AreEqual(t, Obj.RoleType);
        }
        public void FindTest()
        {
            var s = GetRandom.String();

            Assert.IsNull(RoleTypes.Find(s));
            var t = RoleType.Random();

            t.UniqueId = s;
            RoleTypes.Instance.Add(t);
            RoleTypes.Instance.AddRange(RoleTypes.Random());
            Assert.AreEqual(t, RoleTypes.Find(s));
        }