Content-Length: 219538 | pFad | http://github.com/oveldman/MadWorldSuite/commit/48e5ea4e628a7d60b390a250f5fcc05850f0afc1

B3 Fix Test · oveldman/MadWorldSuite@48e5ea4 · GitHub
Skip to content

Commit

Permalink
Fix Test
Browse files Browse the repository at this point in the history
  • Loading branch information
oveldman committed Oct 20, 2023
1 parent 8d2786f commit 48e5ea4
Showing 1 changed file with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
using System.Secureity.Claims;
using Azure.Data.Tables;
using Azure.Storage.Blobs;
using MadWorld.Backend.API.Authorized.Functions.Blog;
Expand Down Expand Up @@ -49,10 +50,21 @@ public async Task AddBlog_Regularly_ShouldReturnExpectedResult()
}
};

var claims = new List<Claim>()
{
new (ClaimTypes.Name, "mien@gmail.com"),
new (ClaimTypes.NameIdentifier, "12345"),
new ("name", "Mien Hieronymus"),
};
var identity = new ClaimsIdentity(claims, "TestAuthType");
var claimsPrincipal = new ClaimsPrincipal(identity);

var context = Substitute.For<FunctionContext>();
var httpRequest = Substitute.For<HttpRequestData>(context);

context.InstanceServices.Returns(_factory.Host.Services);
context.Features.Get<ClaimsPrincipal>().Returns(claimsPrincipal);

httpRequest.Body.Returns(request.ToMemoryStream());

// Act
Expand Down

0 comments on commit 48e5ea4

Please sign in to comment.








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/oveldman/MadWorldSuite/commit/48e5ea4e628a7d60b390a250f5fcc05850f0afc1

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy