Skip to content

Commit de479d3

Browse files
author
Joel Mitchell
committed
Added tests
1 parent 8390d0a commit de479d3

File tree

9 files changed

+560
-78
lines changed

9 files changed

+560
-78
lines changed

.gitignore

Lines changed: 4 additions & 55 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,6 @@ build/
1515
[Bb]in/
1616
[Oo]bj/
1717

18-
# Enable "build/" folder in the NuGet Packages folder since NuGet packages use it for MSBuild targets
19-
!packages/*/build/
20-
2118
# MSTest test Results
2219
[Tt]est[Rr]esult*/
2320
[Bb]uild[Ll]og.*
@@ -46,48 +43,15 @@ build/
4643
*.log
4744
*.scc
4845

49-
# Visual C++ cache files
50-
ipch/
51-
*.aps
52-
*.ncb
53-
*.opensdf
54-
*.sdf
55-
*.cachefile
56-
5746
# Visual Studio profiler
5847
*.psess
5948
*.vsp
6049
*.vspx
6150

62-
# Guidance Automation Toolkit
63-
*.gpState
64-
6551
# ReSharper is a .NET coding add-in
6652
_ReSharper*/
6753
*.[Rr]e[Ss]harper
6854

69-
# TeamCity is a build add-in
70-
_TeamCity*
71-
72-
# DotCover is a Code Coverage Tool
73-
*.dotCover
74-
75-
# NCrunch
76-
*.ncrunch*
77-
.*crunch*.local.xml
78-
79-
# Installshield output folder
80-
[Ee]xpress/
81-
82-
# DocProject is a documentation generator add-in
83-
DocProject/buildhelp/
84-
DocProject/Help/*.HxT
85-
DocProject/Help/*.HxC
86-
DocProject/Help/*.hhc
87-
DocProject/Help/*.hhk
88-
DocProject/Help/*.hhp
89-
DocProject/Help/Html2
90-
DocProject/Help/html
9155

9256
# Click-Once directory
9357
publish/
@@ -97,42 +61,27 @@ publish/
9761
*.pubxml
9862

9963
# NuGet Packages Directory
100-
## TODO: If you have NuGet Package Restore enabled, uncomment the next line
10164
packages/
10265

10366
# Windows Azure Build Output
10467
csx
10568
*.build.csdef
10669

107-
# Windows Store app package directory
108-
AppPackages/
109-
11070
# Others
111-
sql/
112-
*.Cache
113-
ClientBin/
114-
[Ss]tyle[Cc]op.*
11571
~$*
11672
*~
11773
*.dbmdl
11874
*.[Pp]ublish.xml
11975
*.pfx
12076
*.publishsettings
12177

122-
# RIA/Silverlight projects
123-
Generated_Code/
124-
12578
# Backup & report files from converting an old project file to a newer
12679
# Visual Studio version. Backup files are not needed, because we have git ;-)
12780
_UpgradeReport_Files/
12881
Backup*/
12982
UpgradeLog*.XML
13083
UpgradeLog*.htm
13184

132-
# SQL Server files
133-
App_Data/*.mdf
134-
App_Data/*.ldf
135-
13685
# =========================
13786
# Windows detritus
13887
# =========================
@@ -144,14 +93,14 @@ ehthumbs.db
14493
# Folder config file
14594
Desktop.ini
14695

147-
# Recycle Bin used on file shares
148-
$RECYCLE.BIN/
149-
15096
# Mac crap
15197
.DS_Store
15298

153-
src/.vs
99+
.vscode
100+
.vs
154101

155102
# Cake Build
156103
/tools
157104
/artifacts
105+
106+
appsettings.local.json

Cofoundry.Plugins.Azure.sln

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
2+
Microsoft Visual Studio Solution File, Format Version 12.00
3+
# Visual Studio Version 16
4+
VisualStudioVersion = 16.0.30128.74
5+
MinimumVisualStudioVersion = 10.0.40219.1
6+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Cofoundry.Plugins.Azure", "src\Cofoundry.Plugins.Azure\Cofoundry.Plugins.Azure.csproj", "{47B6C7FF-D712-4C6D-8401-13F1FF522F52}"
7+
EndProject
8+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Cofoundry.Plugins.Azure.Tests", "test\Cofoundry.Plugins.Azure.Tests\Cofoundry.Plugins.Azure.Tests.csproj", "{D7AB805A-52E1-4907-8EB0-3B67D1FE99BC}"
9+
EndProject
10+
Global
11+
GlobalSection(SolutionConfigurationPlatforms) = preSolution
12+
Debug|Any CPU = Debug|Any CPU
13+
Release|Any CPU = Release|Any CPU
14+
EndGlobalSection
15+
GlobalSection(ProjectConfigurationPlatforms) = postSolution
16+
{47B6C7FF-D712-4C6D-8401-13F1FF522F52}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
17+
{47B6C7FF-D712-4C6D-8401-13F1FF522F52}.Debug|Any CPU.Build.0 = Debug|Any CPU
18+
{47B6C7FF-D712-4C6D-8401-13F1FF522F52}.Release|Any CPU.ActiveCfg = Release|Any CPU
19+
{47B6C7FF-D712-4C6D-8401-13F1FF522F52}.Release|Any CPU.Build.0 = Release|Any CPU
20+
{D7AB805A-52E1-4907-8EB0-3B67D1FE99BC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
21+
{D7AB805A-52E1-4907-8EB0-3B67D1FE99BC}.Debug|Any CPU.Build.0 = Debug|Any CPU
22+
{D7AB805A-52E1-4907-8EB0-3B67D1FE99BC}.Release|Any CPU.ActiveCfg = Release|Any CPU
23+
{D7AB805A-52E1-4907-8EB0-3B67D1FE99BC}.Release|Any CPU.Build.0 = Release|Any CPU
24+
EndGlobalSection
25+
GlobalSection(SolutionProperties) = preSolution
26+
HideSolutionNode = FALSE
27+
EndGlobalSection
28+
GlobalSection(ExtensibilityGlobals) = postSolution
29+
SolutionGuid = {E7C4B62A-310D-46E2-AA3E-2FA8DC32216C}
30+
EndGlobalSection
31+
EndGlobal

src/Cofoundry.Plugins.Azure.sln

Lines changed: 0 additions & 22 deletions
This file was deleted.

src/Cofoundry.Plugins.Azure/AzureBlobFileService.cs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
using System.Threading;
1313
using System.Threading.Tasks;
1414

15-
namespace Cofoundry.Plugins.Azure
15+
namespace Cofoundry.Plugins.Azure.Internal
1616
{
1717
/// <summary>
1818
/// File system abstraction for Azure blob storage
@@ -42,6 +42,11 @@ AzureSettings settings
4242

4343
#region public methods
4444

45+
public BlobServiceClient GetServiceClient()
46+
{
47+
return _blobServiceClient;
48+
}
49+
4550
/// <summary>
4651
/// Determins if the specified file exists in the container.
4752
/// </summary>

src/Cofoundry.Plugins.Azure/AzureDependencyRegistration.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
using Cofoundry.Core.DependencyInjection;
22
using Cofoundry.Domain.Data;
3+
using Cofoundry.Plugins.Azure.Internal;
34
using System;
45
using System.Collections.Generic;
56
using System.Linq;

0 commit comments

Comments
 (0)