Skip to content

Commit

Permalink
Transaction Typo
Browse files Browse the repository at this point in the history
  • Loading branch information
haieng1234 committed Nov 26, 2021
1 parent 1c9e014 commit 8a7bdf9
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@ public class TransactionHttpTests : BaseTest
{
private readonly ITestOutputHelper Log;

private readonly _transactionHttp _transactionHttp;
private readonly TransactionHttp _transactionHttp;

public TransactionHttpTests(ITestOutputHelper log)
{
Log = log;

_transactionHttp = new _transactionHttp(BaseUrl) { NetworkType = NetworkType.TEST_NET };
_transactionHttp = new TransactionHttp(BaseUrl) { NetworkType = NetworkType.TEST_NET };
}

[Fact]
Expand Down Expand Up @@ -145,7 +145,7 @@ public async Task Get_Transaction_By_Hash_Should_Return_AliasTransaction_Link_Na
[Fact]
public async Task Get_Transfer_Transaction_With_Secure_Message()
{
var transactionHttp = new _transactionHttp(BaseUrl) { NetworkType = NetworkType.TEST_NET };
var transactionHttp = new TransactionHttp(BaseUrl) { NetworkType = NetworkType.TEST_NET };

using (var httpTest = new HttpTest())
{
Expand Down Expand Up @@ -173,7 +173,7 @@ public async Task Get_Transfer_Transaction_With_Secure_Message()
[Fact]
public async Task Get_Embedded_transaction()
{
var transactionHttp = new _transactionHttp(BaseUrl) { NetworkType = NetworkType.TEST_NET };
var transactionHttp = new TransactionHttp(BaseUrl) { NetworkType = NetworkType.TEST_NET };

using (var httpTest = new HttpTest())
{
Expand Down Expand Up @@ -201,7 +201,7 @@ public async Task Get_Embedded_transaction()
[Fact]
public async Task Get_MosaicLevy_transaction()
{
var transactionHttp = new _transactionHttp(BaseUrl) { NetworkType = NetworkType.TEST_NET };
var transactionHttp = new TransactionHttp(BaseUrl) { NetworkType = NetworkType.TEST_NET };

using (var httpTest = new HttpTest())
{
Expand All @@ -211,7 +211,7 @@ public async Task Get_MosaicLevy_transaction()

const string transactionHash = "02D2E02F6162A4CBDAD8703085A2D9DE8E7C938A969071D76D0189858761CD8E";

var transaction = await _transactionHttp.GetTransaction(transactionHash);
var transaction = await transactionHttp.GetTransaction(transactionHash);
transaction.Should().NotBeNull();

transaction.Should().BeOfType<ModifyMosaicLevyTransaction>();
Expand All @@ -223,15 +223,15 @@ public async Task Get_MosaicLevy_transaction()
[Fact]
public async Task Get_transaction_by_group()
{
var transactionHttp = new _transactionHttp(BaseUrl) { NetworkType = NetworkType.TEST_NET };
var transactionHttp = new TransactionHttp(BaseUrl) { NetworkType = NetworkType.TEST_NET };

using (var httpTest = new HttpTest())
{
var fakeJson = TestHelper.LoadJsonFileToObject(@"Testdata\\Transactions\\GetTransactionByGroup.json");

httpTest.RespondWithJson(fakeJson);

var transaction = await _transactionHttp.SearchTransactions(TransactionGroupType.confirmed, "04BEBF85816911E0DFEAA673B6A4141B28B8BC783A994BE074C7E65C9F98DECA");
var transaction = await transactionHttp.SearchTransactions(TransactionGroupType.confirmed, "04BEBF85816911E0DFEAA673B6A4141B28B8BC783A994BE074C7E65C9F98DECA");
transaction.Should().NotBeNull();
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,22 +30,22 @@ namespace ProximaX.Sirius.Chain.Sdk.Infrastructure
/// <summary>
/// Transaction http
/// </summary>
public class _transactionHttp : BaseHttp
public class TransactionHttp : BaseHttp
{
/// <summary>
/// Initializes a new instance of the <see cref="_transactionHttp" /> class.
/// </summary>
/// <param name="host">The host</param>
/// <param name="networkHttp">The network http</param>
public _transactionHttp(string host, NetworkHttp networkHttp) : base(host, networkHttp)
public TransactionHttp(string host, NetworkHttp networkHttp) : base(host, networkHttp)
{
}

/// <summary>
/// Initializes a new instance of the <see cref="_transactionHttp" /> class.
/// Initializes a new instance of the <see cref="TransactionHttp" /> class.
/// </summary>
/// <param name="host">The host</param>
public _transactionHttp(string host) : this(host, new NetworkHttp(host))
public TransactionHttp(string host) : this(host, new NetworkHttp(host))
{
}

Expand Down

0 comments on commit 8a7bdf9

Please sign in to comment.