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."); }
//////////////////////////////////////////////////////////////////////////////////////////////// /*--------------------------------------------------------------------------------------------*/ public CreateFabDirectorValidator(CreateFabDirector pCreateObj) : base(pCreateObj) { vCreateObj = pCreateObj; }