Class CompositeViewServiceResolverTests
Tests for Serenity.Menu.Infrastructure.Services.CompositeViewServiceResolver: it resolves the composite-view service from the static Serenity.Global.Application.Services.ServiceLocatorBridge, returns null while none is registered, and caches the resolved instance on first success. Each test sets and clears the static bridge to stay isolated.
Inherited Members
Namespace: Serenity.UnityMenu.Tests.Infrastructure
Assembly: Tests.dll
Syntax
public class CompositeViewServiceResolverTests
Constructors
CompositeViewServiceResolverTests()
Declaration
public CompositeViewServiceResolverTests()
Methods
Resolve_CachesFirstResolvedService()
Declaration
public void Resolve_CachesFirstResolvedService()
Resolve_LocatorWithoutCompositeService_ReturnsNull()
Declaration
public void Resolve_LocatorWithoutCompositeService_ReturnsNull()
Resolve_NoServiceLocator_ReturnsNull()
Declaration
public void Resolve_NoServiceLocator_ReturnsNull()
Resolve_RegisteredService_ReturnsIt()
Declaration
public void Resolve_RegisteredService_ReturnsIt()
TearDown()
Declaration
public void TearDown()