Owneat Technical Guide main Help

Class CreateUserIntegrationTests

Namespace: Identity.IntegrationTests.Controllers.UserController.Handlers
Assembly: Identity.IntegrationTests.dll

[Collection("Identity")] public class CreateUserIntegrationTests : IAsyncLifetime

Inheritance

object ← CreateUserIntegrationTests

Implements

IAsyncLifetime

Inherited Members

object.Equals\(object?\), object.Equals\(object?, object?\), object.GetHashCode\(\), object.GetType\(\), object.MemberwiseClone\(\), object.ReferenceEquals\(object?, object?\), object.ToString\(\)

Constructors

CreateUserIntegrationTests\(IdentityApiFactory\)

public CreateUserIntegrationTests(IdentityApiFactory factory)

Parameters

factory IdentityApiFactory

Methods

CreateUser_ShouldAddAndReturnUser_WhenCommandIsValid\(\)

[Fact] public Task CreateUser_ShouldAddAndReturnUser_WhenCommandIsValid()

Returns

Task

CreateUser_ShouldReturnConflictException_WhenUserAlreadyExists\(\)

[Fact] public Task CreateUser_ShouldReturnConflictException_WhenUserAlreadyExists()

Returns

Task

CreateUser_ShouldReturnValidationError_WhenCommandIsInvalid\(\)

[Fact] public Task CreateUser_ShouldReturnValidationError_WhenCommandIsInvalid()

Returns

Task

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

Task

InitializeAsync\(\)

Called immediately after the class has been created, before it is used.

public Task InitializeAsync()

Returns

Task

Last modified: 21 May 2024