示例#1
0
        public void EnumAsInteger_Director()
        {
            const string expect = "{\"Type\":2,\"PrimaryAction\":1,\"RelatedAction\":5}";

            var dir = new CreateFabDirector();

            dir.Type          = DirectorTypeId.DefinedPath;
            dir.PrimaryAction = DirectorActionId.Read;
            dir.RelatedAction = DirectorActionId.Perform;

            Assert.AreEqual(expect, dir.ToJson(), "Incorrect JSON.");
        }
示例#2
0
 ////////////////////////////////////////////////////////////////////////////////////////////////
 /*--------------------------------------------------------------------------------------------*/
 public CreateFabDirectorValidator(CreateFabDirector pCreateObj) : base(pCreateObj)
 {
     vCreateObj = pCreateObj;
 }