public void ConstructorAndFields() { FeeSchemaResponse obj = new FeeSchemaResponse(); Assert.IsNotNull(obj); Assert.IsNull(obj.Data); obj.Data = new FeeSchema(); Assert.IsNotNull(obj.Data); Assert.IsNotNull(obj.ToJson()); }
public void CreatePayeeFeeSchemaSplitVariable() { BoletoFacil boletoFacil = GetBoletoFacil(); Split split = Split; split.SplitVariable = 25; FeeSchemaResponse response = boletoFacil.CreatePayeeFeeSchema(split); Assert.IsNotNull(response); Assert.IsTrue(response.Success); Assert.IsNotNull(response.Data); Assert.IsInstanceOfType(response.Data, typeof(FeeSchema)); Assert.AreEqual(123, response.Data.Id); Assert.AreEqual("37515135CBD4FA0176F77F944C15F064CB714C75FE23685B9EC84693A05B10F783FDC05C31BF5800", response.Data.FeeSchemaToken); }