Skip to content

Commit 8a65472

Browse files
committed
rename
1 parent c46758c commit 8a65472

File tree

19 files changed

+39
-44
lines changed

19 files changed

+39
-44
lines changed

.github/workflows/dotnet.yml

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -27,20 +27,15 @@ jobs:
2727

2828
- name: Restore dependencies
2929
run: dotnet restore
30+
3031
- name: Build
3132
run: dotnet build --no-restore
33+
3234
- name: Test
3335
run: dotnet test --no-build --logger 'trx;LogFileName=test-results.trx'
34-
env:
35-
DEFAULT_REGION: eu-west-1
36-
AWS_ACCESS_KEY_ID: localkey
37-
AWS_SECRET_ACCESS_KEY: localsecret
36+
3837
- name: Collect Code Coverage
3938
run: dotnet test --no-build --verbosity normal /p:CollectCoverage=true /p:CoverletOutputFormat=lcov /p:CoverletOutput=ManagedCode.Storage.Tests/lcov.info
40-
env:
41-
DEFAULT_REGION: eu-west-1
42-
AWS_ACCESS_KEY_ID: localkey
43-
AWS_SECRET_ACCESS_KEY: localsecret
4439

4540
# - name: test-reports
4641
# uses: dorny/test-reporter@v1.5.0

ManagedCode.Storage.Gcp/Extensions/ServiceCollectionExtensions.cs renamed to ManagedCode.Storage.Google/Extensions/ServiceCollectionExtensions.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
using System;
22
using ManagedCode.Storage.Core;
33
using ManagedCode.Storage.Core.Exceptions;
4-
using ManagedCode.Storage.Gcp.Options;
4+
using ManagedCode.Storage.Google.Options;
55
using Microsoft.Extensions.DependencyInjection;
66

7-
namespace ManagedCode.Storage.Gcp.Extensions;
7+
namespace ManagedCode.Storage.Google.Extensions;
88

99
public static class ServiceCollectionExtensions
1010
{
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@
1111
using ManagedCode.Communication;
1212
using ManagedCode.Storage.Core;
1313
using ManagedCode.Storage.Core.Models;
14-
using ManagedCode.Storage.Gcp.Options;
14+
using ManagedCode.Storage.Google.Options;
1515
using Microsoft.Extensions.Logging;
1616

17-
namespace ManagedCode.Storage.Gcp;
17+
namespace ManagedCode.Storage.Google;
1818

1919
public class GCPStorage : BaseStorage<StorageClient, GCPStorageOptions>, IGCPStorage
2020
{
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
using Google.Cloud.Storage.V1;
22
using ManagedCode.Storage.Core;
3-
using ManagedCode.Storage.Gcp.Options;
3+
using ManagedCode.Storage.Google.Options;
44

5-
namespace ManagedCode.Storage.Gcp;
5+
namespace ManagedCode.Storage.Google;
66

77
public interface IGCPStorage : IStorage<StorageClient, GCPStorageOptions>
88
{

ManagedCode.Storage.Gcp/ManagedCode.Storage.Gcp.csproj renamed to ManagedCode.Storage.Google/ManagedCode.Storage.Google.csproj

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@
1212
<!--NuGet-->
1313
<PropertyGroup>
1414
<Title>ManagedCode.Storage.Gcp</Title>
15-
<PackageId>ManagedCode.Storage.Gcp</PackageId>
16-
<Description>Storage for GCP</Description>
17-
<PackageTags>managedcode, gcp, storage, cloud, blob</PackageTags>
15+
<PackageId>ManagedCode.Storage.Google</PackageId>
16+
<Description>Storage for Google Cloud Storage</Description>
17+
<PackageTags>managedcode, gcs, storage, cloud, blob</PackageTags>
1818
</PropertyGroup>
1919

2020
<ItemGroup>
@@ -25,8 +25,8 @@
2525
<PackageReference Include="Google.Api.Gax" Version="4.4.0" />
2626
<PackageReference Include="Google.Api.Gax.Rest" Version="4.4.0" />
2727
<PackageReference Include="Google.Apis.Storage.v1" Version="1.62.1.3190" />
28-
<PackageReference Include="ManagedCode.Communication" Version="2.0.26" />
2928
<PackageReference Include="Google.Cloud.Storage.V1" Version="4.6.0" />
29+
<PackageReference Include="ManagedCode.Communication" Version="2.0.26" />
3030
<PackageReference Include="Humanizer.Core" Version="2.14.1" />
3131
<PackageReference Include="Microsoft.Extensions.Logging.Abstractions" Version="7.0.1" />
3232
<PackageReference Include="System.Linq.Async" Version="6.0.1" />

ManagedCode.Storage.Gcp/Options/BucketOptions.cs renamed to ManagedCode.Storage.Google/Options/BucketOptions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
namespace ManagedCode.Storage.Gcp.Options;
1+
namespace ManagedCode.Storage.Google.Options;
22

33
public class BucketOptions
44
{

ManagedCode.Storage.Gcp/Options/GCPStorageOptions.cs renamed to ManagedCode.Storage.Google/Options/GCPStorageOptions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
using Google.Cloud.Storage.V1;
33
using ManagedCode.Storage.Core;
44

5-
namespace ManagedCode.Storage.Gcp.Options;
5+
namespace ManagedCode.Storage.Google.Options;
66

77
public class GCPStorageOptions : IStorageOptions
88
{

ManagedCode.Storage.TestFakes/FakeGCPStorage.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@
22
using ManagedCode.Communication;
33
using ManagedCode.Storage.FileSystem;
44
using ManagedCode.Storage.FileSystem.Options;
5-
using ManagedCode.Storage.Gcp;
6-
using ManagedCode.Storage.Gcp.Options;
5+
using ManagedCode.Storage.Google;
6+
using ManagedCode.Storage.Google.Options;
77

88
namespace ManagedCode.Storage.TestFakes;
99

10-
public class FakeGCPStorage : FileSystemStorage, IGCPStorage
10+
public class FakeGoogleStorage : FileSystemStorage, IGCPStorage
1111
{
12-
public FakeGCPStorage() : base(new FileSystemStorageOptions())
12+
public FakeGoogleStorage() : base(new FileSystemStorageOptions())
1313
{
1414
}
1515

ManagedCode.Storage.TestFakes/ManagedCode.Storage.TestFakes.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
<ProjectReference Include="..\ManagedCode.Storage.Azure\ManagedCode.Storage.Azure.csproj"/>
2121
<ProjectReference Include="..\ManagedCode.Storage.Core\ManagedCode.Storage.Core.csproj"/>
2222
<ProjectReference Include="..\ManagedCode.Storage.FileSystem\ManagedCode.Storage.FileSystem.csproj"/>
23-
<ProjectReference Include="..\ManagedCode.Storage.Gcp\ManagedCode.Storage.Gcp.csproj"/>
23+
<ProjectReference Include="..\ManagedCode.Storage.Google\ManagedCode.Storage.Google.csproj" />
2424
</ItemGroup>
2525

2626
</Project>

ManagedCode.Storage.TestFakes/MockCollectionExtensions.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
using ManagedCode.Storage.Azure;
33
using ManagedCode.Storage.AzureDataLake;
44
using ManagedCode.Storage.Core;
5-
using ManagedCode.Storage.Gcp;
5+
using ManagedCode.Storage.Google;
66
using Microsoft.Extensions.DependencyInjection;
77
using Microsoft.Extensions.DependencyInjection.Extensions;
88

@@ -55,18 +55,18 @@ public static IServiceCollection ReplaceAzureStorageAsDefault(this IServiceColle
5555
return serviceCollection;
5656
}
5757

58-
public static IServiceCollection ReplaceGCPStorageAsDefault(this IServiceCollection serviceCollection)
58+
public static IServiceCollection ReplaceGoogleStorageAsDefault(this IServiceCollection serviceCollection)
5959
{
60-
serviceCollection.ReplaceGCPStorage();
60+
serviceCollection.ReplaceGoogleStorage();
6161
serviceCollection.AddTransient<IStorage, FakeAzureStorage>();
6262
return serviceCollection;
6363
}
6464

65-
public static IServiceCollection ReplaceGCPStorage(this IServiceCollection serviceCollection)
65+
public static IServiceCollection ReplaceGoogleStorage(this IServiceCollection serviceCollection)
6666
{
6767
serviceCollection.RemoveAll<IGCPStorage>();
6868
serviceCollection.RemoveAll<GCPStorage>();
69-
serviceCollection.AddTransient<IGCPStorage, FakeGCPStorage>();
69+
serviceCollection.AddTransient<IGCPStorage, FakeGoogleStorage>();
7070
return serviceCollection;
7171
}
7272
}

0 commit comments

Comments
 (0)