-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
50 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,55 +1,55 @@ | ||
// *********************************************************************** | ||
// Assembly : GuiStracini.Mandae | ||
// Author : Guilherme Branco Stracini | ||
// Created : 28/09/2017 | ||
// | ||
// Last Modified By : Guilherme Branco Stracini | ||
// Last Modified On : 14/10/2023 | ||
// *********************************************************************** | ||
// <copyright file="OrdersTest.cs" company="Guilherme Branco Stracini ME"> | ||
// Copyright © 2017-2023 Guilherme Branco Stracini | ||
// </copyright> | ||
// <summary></summary> | ||
// *********************************************************************** | ||
// // *********************************************************************** | ||
// // Assembly : GuiStracini.Mandae | ||
// // Author : Guilherme Branco Stracini | ||
// // Created : 28/09/2017 | ||
// // | ||
// // Last Modified By : Guilherme Branco Stracini | ||
// // Last Modified On : 14/10/2023 | ||
// // *********************************************************************** | ||
// // <copyright file="OrdersTest.cs" company="Guilherme Branco Stracini ME"> | ||
// // Copyright © 2017-2023 Guilherme Branco Stracini | ||
// // </copyright> | ||
// // <summary></summary> | ||
// // *********************************************************************** | ||
|
||
using Xunit; | ||
// using Xunit; | ||
|
||
namespace GuiStracini.Mandae.Tests.V2; | ||
// namespace GuiStracini.Mandae.Tests.V2; | ||
|
||
using System.Threading; | ||
using System.Threading.Tasks; | ||
// using System.Threading; | ||
// using System.Threading.Tasks; | ||
|
||
/// <summary> | ||
/// The orders test class | ||
/// </summary> | ||
public class OrdersTests | ||
{ | ||
/// <summary> | ||
/// Validates register order collect request method. | ||
/// </summary> | ||
[SkippableFact] | ||
public void RegisterOrderCollectRequest() | ||
{ | ||
var client = new MandaeClient("0b5e2c6410cf0ac087ae7ace111dbd42"); | ||
var orderModel = MockOrdersRepository.GetSampleOrderModel(); | ||
var order = client.CreateOrderCollectRequest(orderModel); | ||
Assert.Null(order.Error); | ||
Assert.True(order.Id > 0); | ||
Assert.True(order.Items[0].Id > 0); | ||
} | ||
// /// <summary> | ||
// /// The orders test class | ||
// /// </summary> | ||
// public class OrdersTests | ||
// { | ||
// /// <summary> | ||
// /// Validates register order collect request method. | ||
// /// </summary> | ||
// [SkippableFact] | ||
// public void RegisterOrderCollectRequest() | ||
// { | ||
// var client = new MandaeClient("0b5e2c6410cf0ac087ae7ace111dbd42"); | ||
// var orderModel = MockOrdersRepository.GetSampleOrderModel(); | ||
// var order = client.CreateOrderCollectRequest(orderModel); | ||
// Assert.Null(order.Error); | ||
// Assert.True(order.Id > 0); | ||
// Assert.True(order.Items[0].Id > 0); | ||
// } | ||
|
||
/// <summary> | ||
/// Validates register order collect request asynchronous method. | ||
/// </summary> | ||
/// <returns>A Task representing the asynchronous operation.</returns> | ||
[SkippableFact] | ||
public async Task RegisterOrderCollectRequestAsync() | ||
{ | ||
var client = new MandaeClient("0b5e2c6410cf0ac087ae7ace111dbd42"); | ||
var orderModel = MockOrdersRepository.GetSampleOrderModel(); | ||
var order = await client.CreateOrderCollectRequestAsync(orderModel, CancellationToken.None); | ||
Assert.Null(order.Error); | ||
Assert.True(order.Id > 0); | ||
Assert.True(order.Items[0].Id > 0); | ||
} | ||
} | ||
// /// <summary> | ||
// /// Validates register order collect request asynchronous method. | ||
// /// </summary> | ||
// /// <returns>A Task representing the asynchronous operation.</returns> | ||
// [SkippableFact] | ||
// public async Task RegisterOrderCollectRequestAsync() | ||
// { | ||
// var client = new MandaeClient("0b5e2c6410cf0ac087ae7ace111dbd42"); | ||
// var orderModel = MockOrdersRepository.GetSampleOrderModel(); | ||
// var order = await client.CreateOrderCollectRequestAsync(orderModel, CancellationToken.None); | ||
// Assert.Null(order.Error); | ||
// Assert.True(order.Id > 0); | ||
// Assert.True(order.Items[0].Id > 0); | ||
// } | ||
// } |