diff options
Diffstat (limited to 'RhSolutions.SkuParser.Tests/FormFileUtil.cs')
-rw-r--r-- | RhSolutions.SkuParser.Tests/FormFileUtil.cs | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/RhSolutions.SkuParser.Tests/FormFileUtil.cs b/RhSolutions.SkuParser.Tests/FormFileUtil.cs index aaee7ca..f100989 100644 --- a/RhSolutions.SkuParser.Tests/FormFileUtil.cs +++ b/RhSolutions.SkuParser.Tests/FormFileUtil.cs @@ -1,17 +1,17 @@ -using Microsoft.AspNetCore.Http; -using Moq; - -namespace RhSolutions.SkuParser.Tests; - -public static class FormFileUtil -{ - public static Mock<IFormFile> GetMockFormFile(string workbookName) - { - string filepath = "./../../../Workbooks/" + workbookName; - var mockFile = new Mock<IFormFile>(); - var memoryStream = new MemoryStream([.. File.ReadAllBytes(filepath)]); - mockFile.Setup(x => x.OpenReadStream()) - .Returns(memoryStream); - return mockFile; - } +using Microsoft.AspNetCore.Http;
+using Moq;
+
+namespace RhSolutions.SkuParser.Tests;
+
+public static class FormFileUtil
+{
+ public static Mock<IFormFile> GetMockFormFile(string workbookName)
+ {
+ string filepath = "./../../../Workbooks/" + workbookName;
+ var mockFile = new Mock<IFormFile>();
+ var memoryStream = new MemoryStream([.. File.ReadAllBytes(filepath)]);
+ mockFile.Setup(x => x.OpenReadStream())
+ .Returns(memoryStream);
+ return mockFile;
+ }
}
\ No newline at end of file |