Exemple #1
0
        public void Parameter_GetSet()
        {
            var att = new HalEmbedActionAttribute("rel", "action");

            att.Parameter = "blah";

            Assert.AreEqual("blah", att.Parameter);
        }
Exemple #2
0
        public void IsSingular_GetSet()
        {
            var att = new HalEmbedActionAttribute("rel", "action");

            att.IsSingular = true;

            Assert.AreEqual(true, att.IsSingular);
        }
Exemple #3
0
        public void IncludeLink_GetSet()
        {
            var att = new HalEmbedActionAttribute("rel", "action");

            att.IncludeLink = true;

            Assert.AreEqual(true, att.IncludeLink);
        }
Exemple #4
0
        public void Controller_GetSet()
        {
            var att = new HalEmbedActionAttribute("rel", "action");

            att.Controller = "Controller";

            Assert.AreEqual(att.Controller, "Controller");
        }
Exemple #5
0
        public void Parameter_DefaultNull()
        {
            var att = new HalEmbedActionAttribute("rel", "action");

            Assert.IsNull(att.Parameter);
        }
Exemple #6
0
        public void IsSingular_DefaultFalse()
        {
            var att = new HalEmbedActionAttribute("rel", "action");

            Assert.AreEqual(false, att.IsSingular);
        }
Exemple #7
0
        public void IncludeLink_DefaultFalse()
        {
            var att = new HalEmbedActionAttribute("rel", "action");

            Assert.AreEqual(false, att.IncludeLink);
        }
Exemple #8
0
        public void Ctor_Sets_Rel()
        {
            var att = new HalEmbedActionAttribute("rel", "action");

            Assert.AreEqual("rel", att.Rel);
        }