Updated the `Fake` class to introduce flexible methods for generating fake `User` and `UserDto` objects with optional parameters. Removed the static `UserFaker` instance and related properties. Added a new `DbSet<User>` property to `MockDbContext` for improved management of `User` entities.
13 lines
247 B
C#
13 lines
247 B
C#
using Microsoft.EntityFrameworkCore;
|
|
|
|
namespace DigitalData.Core.Tests.Mock;
|
|
|
|
public class MockDbContext : DbContext
|
|
{
|
|
public DbSet<User> Users { get; set; }
|
|
|
|
public MockDbContext(DbContextOptions options) : base(options)
|
|
{
|
|
}
|
|
}
|