Owneat Technical Guide main Help

Class GetCategoryByIdIntegrationTests

Namespace: Restaurant.IntegrationTests.Controllers.CategoryController
Assembly: Restaurant.IntegrationTests.dll

[Collection("Restaurant")] public class GetCategoryByIdIntegrationTests : IAsyncLifetime

Inheritance

object ← GetCategoryByIdIntegrationTests

Implements

IAsyncLifetime

Inherited Members

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

Constructors

GetCategoryByIdIntegrationTests\(RestaurantApiFactory\)

public GetCategoryByIdIntegrationTests(RestaurantApiFactory factory)

Parameters

factory RestaurantApiFactory

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

Task

GetCategoryById_ShouldReturnCategory_WhenCategoryIdExists\(\)

[Fact] public Task GetCategoryById_ShouldReturnCategory_WhenCategoryIdExists()

Returns

Task

GetCategoryById_ShouldReturnNotFound_WhenCategoryIdDoesNotExist\(\)

[Fact] public Task GetCategoryById_ShouldReturnNotFound_WhenCategoryIdDoesNotExist()

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