コード例 #1
0
        public void EnumAsInteger_Descriptor()
        {
            const string expect = "{\"Type\":2}";

            var desc = new CreateFabDescriptor();

            desc.Type = DescriptorTypeId.IsA;

            Assert.AreEqual(expect, desc.ToJson(), "Incorrect JSON.");
        }
コード例 #2
0
ファイル: ApiValidators.cs プロジェクト: inthefabric/Fabric
 ////////////////////////////////////////////////////////////////////////////////////////////////
 /*--------------------------------------------------------------------------------------------*/
 public CreateFabDescriptorValidator(CreateFabDescriptor pCreateObj) : base(pCreateObj)
 {
     vCreateObj = pCreateObj;
 }