Acid.PuntoPagos.Sdk.Test.Dto.CreateTransactionRequestDtoFixture.given_transaction_request_dto_with_default_field_values_when_call_get_json_then_return_json C# (CSharp) Method

given_transaction_request_dto_with_default_field_values_when_call_get_json_then_return_json() private method

        public void given_transaction_request_dto_with_default_field_values_when_call_get_json_then_return_json()
        {
            var transaction = new CreateTransactionRequestDto(123456, 1324567);

            var json = transaction.GetJson();

            Assert.IsTrue(json.Contains("\"trx_id\":1324567"), "Id");
            Assert.IsTrue(json.Contains("\"monto\":123456.00"), "Amount");
            Assert.IsTrue(json.StartsWith("{"), "Start Json");
            Assert.IsTrue(json.EndsWith("}"), "End Json");
        }