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
using System; | |
using System.Net; | |
using System.Net.Http; | |
using System.Threading; | |
using System.Threading.Tasks; | |
using api.Services; | |
using Moq; | |
using Moq.Protected; | |
using Xunit; |
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
using System; | |
using System.Net; | |
using System.Net.Http; | |
using System.Threading; | |
using System.Threading.Tasks; | |
using api.Services; | |
using Moq; | |
using Moq.Protected; | |
using Xunit; |
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
{ | |
"result": { | |
"success": "true", | |
"api": "Daily Weighted-average Interbank Exchange Rate - THB / USD", | |
"timestamp": "2018-04-10 14:57:37", | |
"data": { | |
"data_header": { | |
"report_name_eng": "Rates of Exchange of Commercial Banks in Bangkok Metropolis (2002-present)", | |
"report_name_th": "อัตราแลกเปลี่ยนเฉลี่ยของธนาคารพาณิชย์ในกรุงเทพมหานคร (2545-ปัจจุบัน)", | |
"report_uoq_name_eng": "(Unit : Baht / 1 Unit of Foreign Currency)", |
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
using System; | |
using System.Net.Http; | |
using System.Threading.Tasks; | |
using api.Models; | |
using Newtonsoft.Json; | |
namespace api.Services | |
{ | |
public class BotService | |
{ |
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
using System; | |
using Xunit; | |
using api.Services; | |
using System.Net.Http; | |
namespace api.IntegrationTest | |
{ | |
public class BotServiceTest | |
{ | |
[Fact] |
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
using System; | |
using System.Net; | |
using System.Net.Http; | |
using System.Threading; | |
using System.Threading.Tasks; | |
using api.Services; | |
using Moq; | |
using Moq.Protected; | |
using Xunit; |
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
using System; | |
namespace member_dummy | |
{ | |
public class Member | |
{ | |
Boolean authorized; | |
public Member(IAuthorize authorize) { | |
this.authorized = authorize.CheckAuthorize("ifew", "1234"); |
OlderNewer