mirror of
https://github.com/BinaryAlley/Nemera.git
synced 2026-12-03 18:21:10 +00:00
Standardizes test conventions and documentation
This commit is contained in:
1 parent
7aeed04255
commit
f42dc709de
190 files changed
+2180
-2814
No files matched your search
@@ -1,6 +1,5 @@
|
||||
#region ========================================================================= USING =====================================================================================
|
||||
using Bogus;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Diagnostics.CodeAnalysis;
|
||||
using System.Linq;
|
||||
@@ -14,15 +13,17 @@ namespace Lumina.Presentation.Web.Fixtures.Common.Models;
|
||||
[ExcludeFromCodeCoverage]
|
||||
public class SectionModelFixture
|
||||
{
|
||||
private readonly Faker _faker = new();
|
||||
|
||||
/// <summary>
|
||||
/// Creates a new <see cref="SectionModel"/> instance with randomized test data.
|
||||
/// </summary>
|
||||
/// <param name="text">Optional text rendered by the section.</param>
|
||||
/// <returns>A configured <see cref="SectionModel"/> instance.</returns>
|
||||
public SectionModel Create(string? text = null)
|
||||
public SectionModel Create(
|
||||
string? text = null)
|
||||
{
|
||||
Faker faker = new();
|
||||
return new SectionModel { Text = text ?? faker.Lorem.Word() };
|
||||
return new SectionModel { Text = text ?? _faker.Lorem.Word() };
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
||||
Reference in new issue
Block a user