logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    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.

    Inheritance
    object
    CompositeViewServiceResolverTests
    Inherited Members
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    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()
    In this article
    © 2026 Serenity. All Rights Reserved