Revize 578c842e
Přidáno uživatelem Tomáš Orlovský před téměř 4 roky(ů)
tests/Leuze.Tests.Configuration/DatabaseInMemoryFixture.cs | ||
---|---|---|
43 | 43 |
/// </summary> |
44 | 44 |
public RoleManager<ApplicationRole> RoleManager { get; private set; } |
45 | 45 |
|
46 |
/// <summary> |
|
47 |
/// Instance of role manager |
|
48 |
/// </summary> |
|
49 |
public SignInManager<ApplicationUser> SignInManager { get; private set; } |
|
50 |
|
|
46 | 51 |
/// <summary> |
47 | 52 |
/// |
48 | 53 |
/// </summary> |
... | ... | |
60 | 65 |
// Assign shortcuts accessors to registered components |
61 | 66 |
UserManager = Services.GetRequiredService<UserManager<ApplicationUser>>(); |
62 | 67 |
RoleManager = Services.GetRequiredService<RoleManager<ApplicationRole>>(); |
68 |
SignInManager = Services.GetRequiredService<SignInManager<ApplicationUser>>(); |
|
63 | 69 |
|
64 | 70 |
// Storage: create using registered db context / storage context |
65 | 71 |
Storage = (TestingStorageContext)Services.GetRequiredService<IStorageContext>(); |
... | ... | |
101 | 107 |
// Register database-specific storage context implementation. |
102 | 108 |
services.AddScoped<IStorageContext, TestingStorageContext>(); |
103 | 109 |
|
110 |
|
|
111 |
|
|
104 | 112 |
} |
105 | 113 |
|
106 | 114 |
/// <summary> |
Také k dispozici: Unified diff
Implemented first test and added test methods for rest of the tests