Class UpdateUserIntegrationTests
Namespace: Identity.IntegrationTests.Controllers.UserController.Handlers
Assembly: Identity.IntegrationTests.dll
[Collection("Identity")]
public class UpdateUserIntegrationTests : IAsyncLifetime
Inheritance
object ← UpdateUserIntegrationTests
Implements
IAsyncLifetime
Inherited Members
object.Equals\(object?\), object.Equals\(object?, object?\), object.GetHashCode\(\), object.GetType\(\), object.MemberwiseClone\(\), object.ReferenceEquals\(object?, object?\), object.ToString\(\)
Constructors
UpdateUserIntegrationTests\(IdentityApiFactory\)
public UpdateUserIntegrationTests(IdentityApiFactory factory)
Parameters
factory IdentityApiFactory
Methods
DisposeAsync\(\)
Called when an object is no longer needed. Called just before System.IDisposable.Dispose if the class also implements that.
public Task DisposeAsync()
Returns
InitializeAsync\(\)
Called immediately after the class has been created, before it is used.
public Task InitializeAsync()
Returns
UpdateUser_ShouldReturnConflictException_WhenUserAlreadyExists\(\)
[Fact]
public Task UpdateUser_ShouldReturnConflictException_WhenUserAlreadyExists()
Returns
UpdateUser_ShouldReturnNotFoundException_WhenUserDoesNotExist\(\)
[Fact]
public Task UpdateUser_ShouldReturnNotFoundException_WhenUserDoesNotExist()
Returns
UpdateUser_ShouldReturnValidationError_WhenCommandIsInvalid\(\)
[Fact]
public Task UpdateUser_ShouldReturnValidationError_WhenCommandIsInvalid()
Returns
UpdateUser_ShouldUpdateAndReturnUser_WhenCommandIsValidAndUserExists\(\)
[Fact]
public Task UpdateUser_ShouldUpdateAndReturnUser_WhenCommandIsValidAndUserExists()
Returns
Last modified: 21 May 2024