logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Class FakeFileSystemService

    No-op IFileSystemService implementation for testing.

    Inheritance
    object
    FakeFileSystemService
    Implements
    IFileSystemService
    IService
    IFoundationSettings
    Inherited Members
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    Namespace: Serenity.Tests.Shared.Fakes
    Assembly: Tests.dll
    Syntax
    public class FakeFileSystemService : IFileSystemService, IService, IFoundationSettings

    Constructors

    FakeFileSystemService()

    Declaration
    public FakeFileSystemService()

    Properties

    Guid

    Declaration
    public string Guid { get; set; }
    Property Value
    Type Description
    string

    Id

    Declaration
    public string Id { get; set; }
    Property Value
    Type Description
    string

    LogService

    Declaration
    public ILogService LogService { get; set; }
    Property Value
    Type Description
    ILogService

    Methods

    CreateDirectory(string)

    Declaration
    public void CreateDirectory(string directoryPath)
    Parameters
    Type Name Description
    string directoryPath

    Delete(string)

    Declaration
    public void Delete(string path)
    Parameters
    Type Name Description
    string path

    EnumerateFiles(string, string, bool)

    Declaration
    public IEnumerable<string> EnumerateFiles(string directoryPath, string searchPattern, bool recursive)
    Parameters
    Type Name Description
    string directoryPath
    string searchPattern
    bool recursive
    Returns
    Type Description
    IEnumerable<string>

    Exists(string)

    Declaration
    public bool Exists(string path)
    Parameters
    Type Name Description
    string path
    Returns
    Type Description
    bool

    Move(string, string, bool)

    Declaration
    public void Move(string source, string destination, bool overwrite)
    Parameters
    Type Name Description
    string source
    string destination
    bool overwrite

    OpenRead(string)

    Declaration
    public Stream OpenRead(string path)
    Parameters
    Type Name Description
    string path
    Returns
    Type Description
    Stream

    OpenWrite(string, bool)

    Declaration
    public Stream OpenWrite(string path, bool append)
    Parameters
    Type Name Description
    string path
    bool append
    Returns
    Type Description
    Stream

    Implements

    IFileSystemService
    IService
    IFoundationSettings
    In this article
    © 2026 Serenity. All Rights Reserved