コード例 #1
0
        public async Task Invoice_Must_Have_Correct_GatewayName()
        {
            _invoiceBuilder.UseMellat();

            var invoice = await _invoiceBuilder.BuildAsync();

            Assert.IsNotNull(invoice);
            Assert.IsNotNull(invoice.GatewayName);
            Assert.IsTrue(invoice.GatewayName.Equals("Mellat", StringComparison.OrdinalIgnoreCase));
        }
コード例 #2
0
        public async Task Invoice_Must_Have_Correct_GatewayName()
        {
            _invoiceBuilder.UseFanAva();

            var invoice = await _invoiceBuilder.BuildAsync();

            Assert.IsNotNull(invoice);
            Assert.IsNotNull(invoice.GatewayName);
            Assert.AreEqual(FanAvaGateway.Name, invoice.GatewayName);
        }
コード例 #3
0
        public async Task Build_Must_Return_An_Invoice()
        {
            var invoice = await _builder.BuildAsync();

            Assert.IsNotNull(invoice);
        }