Skip to content

Commit 32cd5df

Browse files
committed
#283 Adding Interfaces for without claims identity builder.
1 parent 7bb071c commit 32cd5df

3 files changed

Lines changed: 83 additions & 0 deletions

File tree

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
namespace MyTested.AspNetCore.Mvc.Builders.Authentication
2+
{
3+
using System.Collections.Generic;
4+
using System.Security.Claims;
5+
using MyTested.AspNetCore.Mvc.Builders.Contracts.Authentication;
6+
7+
public class WithoutClaimsIdentityBuilder : IAndWithoutClaimsIdentityBuilder
8+
{
9+
public IAndWithoutClaimsIdentityBuilder WithoutClaim(string type, string value)
10+
{
11+
throw new System.NotImplementedException();
12+
}
13+
14+
public IAndWithoutClaimsIdentityBuilder WithoutClaim(Claim claim)
15+
{
16+
throw new System.NotImplementedException();
17+
}
18+
19+
public IAndWithoutClaimsIdentityBuilder WithoutClaims(IEnumerable<Claim> claims)
20+
{
21+
throw new System.NotImplementedException();
22+
}
23+
24+
public IAndWithoutClaimsIdentityBuilder WithoutClaims(params Claim[] claims)
25+
{
26+
throw new System.NotImplementedException();
27+
}
28+
29+
public IAndWithoutClaimsIdentityBuilder WithoutIdentifier(string identifier)
30+
{
31+
throw new System.NotImplementedException();
32+
}
33+
34+
public IAndWithoutClaimsIdentityBuilder WithoutNameType(string nameType)
35+
{
36+
throw new System.NotImplementedException();
37+
}
38+
39+
public IAndWithoutClaimsIdentityBuilder WithoutRoleType(string roleType)
40+
{
41+
throw new System.NotImplementedException();
42+
}
43+
44+
public IAndWithoutClaimsIdentityBuilder WithoutUsername(string username)
45+
{
46+
throw new System.NotImplementedException();
47+
}
48+
49+
public IWithoutClaimsIdentityBuilder AndAlso()
50+
=> this;
51+
}
52+
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
namespace MyTested.AspNetCore.Mvc.Builders.Contracts.Authentication
2+
{
3+
public interface IAndWithoutClaimsIdentityBuilder : IWithoutClaimsIdentityBuilder
4+
{
5+
IWithoutClaimsIdentityBuilder AndAlso();
6+
}
7+
}
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
namespace MyTested.AspNetCore.Mvc.Builders.Contracts.Authentication
2+
{
3+
using System.Collections.Generic;
4+
using System.Security.Claims;
5+
6+
public interface IWithoutClaimsIdentityBuilder
7+
{
8+
IAndWithoutClaimsIdentityBuilder WithoutNameType(string nameType);
9+
10+
IAndWithoutClaimsIdentityBuilder WithoutRoleType(string roleType);
11+
12+
IAndWithoutClaimsIdentityBuilder WithoutIdentifier(string identifier);
13+
14+
IAndWithoutClaimsIdentityBuilder WithoutUsername(string username);
15+
16+
IAndWithoutClaimsIdentityBuilder WithoutClaim(string type, string value);
17+
18+
IAndWithoutClaimsIdentityBuilder WithoutClaim(Claim claim);
19+
20+
IAndWithoutClaimsIdentityBuilder WithoutClaims(IEnumerable<Claim> claims);
21+
22+
IAndWithoutClaimsIdentityBuilder WithoutClaims(params Claim[] claims);
23+
}
24+
}

0 commit comments

Comments
 (0)