logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Class UnityMenuViewModelFactoryTests

    Tests for Serenity.Menu.InterfaceAdapters.ViewModels.Factories.UnityMenuViewModelFactory: it must build a Serenity.Menu.InterfaceAdapters.ViewModels.UnityMenuViewModel keyed on the menu id and seed it with that menu's options from the supplied options map. The factory only reads menu.Id, so a real Serenity.Menu.Infrastructure.Settings.UnityMenuSettingsDefinition ScriptableObject is used as the Serenity.Menu.Domain.Interfaces.IMenuSettingsDefinition source.

    Inheritance
    object
    UnityMenuViewModelFactoryTests
    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.InterfaceAdapters
    Assembly: Tests.dll
    Syntax
    public class UnityMenuViewModelFactoryTests

    Constructors

    UnityMenuViewModelFactoryTests()

    Declaration
    public UnityMenuViewModelFactoryTests()

    Methods

    CreateViewModel_MenuIdMissingFromOptions_Throws()

    Declaration
    public void CreateViewModel_MenuIdMissingFromOptions_Throws()

    CreateViewModel_ReturnsUnityMenuViewModel()

    Declaration
    public void CreateViewModel_ReturnsUnityMenuViewModel()

    CreateViewModel_SeedsViewModelWithMenuIdsOptions()

    Declaration
    public void CreateViewModel_SeedsViewModelWithMenuIdsOptions()

    SetUp()

    Declaration
    public void SetUp()

    TearDown()

    Declaration
    public void TearDown()
    In this article
    © 2026 Serenity. All Rights Reserved