< Summary

Information
Class: TicTacToeApp.API.Data.TicTacToeContext
Assembly: TicTacToeApp.API
File(s): /home/runner/work/TicTacToe/TicTacToe/TicTacToeApp.API/Data/TicTacToeContext.cs
Line coverage
100%
Covered lines: 6
Uncovered lines: 0
Coverable lines: 6
Total lines: 25
Line coverage: 100%
Branch coverage
N/A
Covered branches: 0
Total branches: 0
Branch coverage: N/A
Method coverage

Feature is only available for sponsors

Upgrade to PRO version

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity Line coverage
.ctor(...)100%11100%
get_Games()100%11100%
OnModelCreating(...)100%11100%

File(s)

/home/runner/work/TicTacToe/TicTacToe/TicTacToeApp.API/Data/TicTacToeContext.cs

#LineLine coverage
 1using TicTacToeApp.API.Data.Configuration;
 2using TicTacToeApp.API.Entity;
 3
 4namespace TicTacToeApp.API.Data;
 5
 6using Microsoft.EntityFrameworkCore;
 7
 8public class TicTacToeContext : DbContext
 9{
 110    public TicTacToeContext(DbContextOptions<TicTacToeContext> opt) : base(opt)
 11    {
 12        // Database.Migrate();
 113    }
 14
 615    public DbSet<Game> Games { get; set; }
 16    // public DbSet<User> Users => Set<User>();
 17
 18    protected override void OnModelCreating(ModelBuilder modelBuilder)
 19    {
 120        modelBuilder.ApplyConfiguration(new GameMapping());
 21        // modelBuilder.ApplyConfiguration(new UserMapping());
 22
 123        base.OnModelCreating(modelBuilder);
 124    }
 25}