Skip to content

Commit 23c61e3

Browse files
Revert "Fix github action (#635)" (#638)
This reverts commit a1f4066.
1 parent a1f4066 commit 23c61e3

File tree

364 files changed

+17677
-18036
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

364 files changed

+17677
-18036
lines changed

.github/workflows/dotnet-core.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
# This workflow contains a single job called "build"
1616
build:
1717
# The type of runner that the job will run on
18-
runs-on: windows-2019
18+
runs-on: ubuntu-latest
1919

2020
# Steps represent a sequence of tasks that will be executed as part of the job
2121
steps:
@@ -26,6 +26,6 @@ jobs:
2626
with:
2727
dotnet-version: 3.1.x
2828
- name: Install dependencies
29-
run: dotnet restore MailChimp.Net.sln
29+
run: dotnet restore
3030
- name: Build
31-
run: dotnet build MailChimp.Net.sln --configuration Release --no-restore
31+
run: dotnet build --configuration Release --no-restore

MailChimp.Net.Tests/ApiTest.cs

Lines changed: 20 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -8,31 +8,30 @@
88
using MailChimp.Net.Core;
99
using Xunit;
1010

11-
namespace MailChimp.Net.Tests
11+
namespace MailChimp.Net.Tests;
12+
13+
/// <summary>
14+
/// The api test.
15+
/// </summary>
16+
public class ApiTest : MailChimpTest
1217
{
1318
/// <summary>
14-
/// The api test.
19+
/// The should_ return_ ap i_ information.
1520
/// </summary>
16-
public class ApiTest : MailChimpTest
21+
/// <returns>
22+
/// The <see cref="Task"/>.
23+
/// </returns>
24+
[Fact]
25+
public async Task Should_Return_API_Information()
1726
{
18-
/// <summary>
19-
/// The should_ return_ ap i_ information.
20-
/// </summary>
21-
/// <returns>
22-
/// The <see cref="Task"/>.
23-
/// </returns>
24-
[Fact]
25-
public async Task Should_Return_API_Information()
26-
{
27-
var apiInfo = await this.MailChimpManager.Api.GetInfoAsync().ConfigureAwait(false);
28-
Assert.NotNull(apiInfo);
29-
}
27+
var apiInfo = await this.MailChimpManager.Api.GetInfoAsync().ConfigureAwait(false);
28+
Assert.NotNull(apiInfo);
29+
}
3030

31-
[Fact]
32-
public async Task Should_Return_String_From_Ping()
33-
{
34-
var ping = await this.MailChimpManager.Api.PingAsync().ConfigureAwait(false);
35-
Assert.Equal(ping.HealthStatus, Constants.MailChimpHealthCheck);
36-
}
31+
[Fact]
32+
public async Task Should_Return_String_From_Ping()
33+
{
34+
var ping = await this.MailChimpManager.Api.PingAsync().ConfigureAwait(false);
35+
Assert.Equal(ping.HealthStatus, Constants.MailChimpHealthCheck);
3736
}
3837
}

MailChimp.Net.Tests/AuthorizedAppTest.cs

Lines changed: 15 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -8,25 +8,24 @@
88

99
using Xunit;
1010

11-
namespace MailChimp.Net.Tests
11+
namespace MailChimp.Net.Tests;
12+
13+
/// <summary>
14+
/// The authorized app test.
15+
/// </summary>
16+
public class AuthorizedAppTest : MailChimpTest
1217
{
1318
/// <summary>
14-
/// The authorized app test.
19+
/// The should_ return_ app_ information.
1520
/// </summary>
16-
public class AuthorizedAppTest : MailChimpTest
21+
/// <returns>
22+
/// The <see cref="Task"/>.
23+
/// </returns>
24+
[Fact]
25+
public async Task Should_Return_App_Information()
1726
{
18-
/// <summary>
19-
/// The should_ return_ app_ information.
20-
/// </summary>
21-
/// <returns>
22-
/// The <see cref="Task"/>.
23-
/// </returns>
24-
[Fact]
25-
public async Task Should_Return_App_Information()
26-
{
27-
var apiInfo = await this.MailChimpManager.Apps.GetAllAsync();
28-
apiInfo = await this.MailChimpManager.Configure((mo) => mo.Limit = 100000).Apps.GetAllAsync();
29-
Assert.NotNull(apiInfo);
30-
}
27+
var apiInfo = await this.MailChimpManager.Apps.GetAllAsync();
28+
apiInfo = await this.MailChimpManager.Configure((mo) => mo.Limit = 100000).Apps.GetAllAsync();
29+
Assert.NotNull(apiInfo);
3130
}
3231
}

MailChimp.Net.Tests/BatchWebHookTest.cs

Lines changed: 18 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -8,29 +8,28 @@
88
using System.Threading.Tasks;
99
using Xunit;
1010

11-
namespace MailChimp.Net.Tests
11+
namespace MailChimp.Net.Tests;
12+
13+
/// <summary>
14+
/// The api test.
15+
/// </summary>
16+
public class BatchWebHookTest : MailChimpTest
1217
{
1318
/// <summary>
14-
/// The api test.
19+
/// The should_ return_ ap i_ information.
1520
/// </summary>
16-
public class BatchWebHookTest : MailChimpTest
21+
/// <returns>
22+
/// The <see cref="Task"/>.
23+
/// </returns>
24+
[Fact]
25+
public async Task Should_Create_Batch_Webhook()
1726
{
18-
/// <summary>
19-
/// The should_ return_ ap i_ information.
20-
/// </summary>
21-
/// <returns>
22-
/// The <see cref="Task"/>.
23-
/// </returns>
24-
[Fact]
25-
public async Task Should_Create_Batch_Webhook()
26-
{
27-
var batch = await this.MailChimpManager.Batches.AddAsync();
28-
var status = await this.MailChimpManager.Batches.GetBatchStatus(batch.Id);
29-
var batches = await this.MailChimpManager.BatchWebHooks.GetAllAsync().ConfigureAwait(false);
30-
await Task.WhenAll(batches.ToList().Select(x => this.MailChimpManager.BatchWebHooks.DeleteAsync(x.Id)));
27+
var batch = await this.MailChimpManager.Batches.AddAsync();
28+
var status = await this.MailChimpManager.Batches.GetBatchStatus(batch.Id);
29+
var batches = await this.MailChimpManager.BatchWebHooks.GetAllAsync().ConfigureAwait(false);
30+
await Task.WhenAll(batches.ToList().Select(x => this.MailChimpManager.BatchWebHooks.DeleteAsync(x.Id)));
3131

32-
var apiInfo = await this.MailChimpManager.BatchWebHooks.AddAsync("http://asdfasdf.com").ConfigureAwait(false);
33-
Assert.NotNull(apiInfo);
34-
}
32+
var apiInfo = await this.MailChimpManager.BatchWebHooks.AddAsync("http://asdfasdf.com").ConfigureAwait(false);
33+
Assert.NotNull(apiInfo);
3534
}
3635
}

0 commit comments

Comments
 (0)