< Summary

Line coverage
0%
Covered lines: 0
Uncovered lines: 46
Coverable lines: 46
Total lines: 90
Line coverage: 0%
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 Cyclomatic complexity Line coverage
File 1: Up(...)100%10%
File 1: Down(...)100%10%
File 2: BuildTargetModel(...)100%10%

File(s)

/home/runner/work/MicroservicesApp/MicroservicesApp/PaymentService/Migrations/20250509221100_InitialCreate.cs

#LineLine coverage
 1using System;
 2using Microsoft.EntityFrameworkCore.Migrations;
 3
 4#nullable disable
 5
 6namespace PaymentService.Migrations
 7{
 8    /// <inheritdoc />
 9    public partial class InitialCreate : Migration
 10    {
 11        /// <inheritdoc />
 12        protected override void Up(MigrationBuilder migrationBuilder)
 13        {
 014            migrationBuilder.CreateTable(
 015                name: "Payments",
 016                columns: table => new
 017                {
 018                    Id = table.Column<Guid>(type: "uuid", nullable: false),
 019                    ProductName = table.Column<string>(type: "text", nullable: false),
 020                    Quantity = table.Column<int>(type: "integer", nullable: false),
 021                    ProcessedAt = table.Column<DateTime>(type: "timestamp with time zone", nullable: false),
 022                    OrderId = table.Column<Guid>(type: "uuid", nullable: false)
 023                },
 024                constraints: table =>
 025                {
 026                    table.PrimaryKey("PK_Payments", x => x.Id);
 027                });
 028        }
 29
 30        /// <inheritdoc />
 31        protected override void Down(MigrationBuilder migrationBuilder)
 32        {
 033            migrationBuilder.DropTable(
 034                name: "Payments");
 035        }
 36    }
 37}

/home/runner/work/MicroservicesApp/MicroservicesApp/PaymentService/Migrations/20250509221100_InitialCreate.Designer.cs

#LineLine coverage
 1// <auto-generated />
 2using System;
 3using Microsoft.EntityFrameworkCore;
 4using Microsoft.EntityFrameworkCore.Infrastructure;
 5using Microsoft.EntityFrameworkCore.Migrations;
 6using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
 7using Npgsql.EntityFrameworkCore.PostgreSQL.Metadata;
 8
 9#nullable disable
 10
 11namespace PaymentService.Migrations
 12{
 13    [DbContext(typeof(PaymentDbContext))]
 14    [Migration("20250509221100_InitialCreate")]
 15    partial class InitialCreate
 16    {
 17        /// <inheritdoc />
 18        protected override void BuildTargetModel(ModelBuilder modelBuilder)
 19        {
 20#pragma warning disable 612, 618
 021            modelBuilder
 022                .HasAnnotation("ProductVersion", "9.0.4")
 023                .HasAnnotation("Relational:MaxIdentifierLength", 63);
 24
 025            NpgsqlModelBuilderExtensions.UseIdentityByDefaultColumns(modelBuilder);
 26
 027            modelBuilder.Entity("Contracts.Payment", b =>
 028                {
 029                    b.Property<Guid>("Id")
 030                        .ValueGeneratedOnAdd()
 031                        .HasColumnType("uuid");
 032
 033                    b.Property<Guid>("OrderId")
 034                        .HasColumnType("uuid");
 035
 036                    b.Property<DateTime>("ProcessedAt")
 037                        .HasColumnType("timestamp with time zone");
 038
 039                    b.Property<string>("ProductName")
 040                        .IsRequired()
 041                        .HasColumnType("text");
 042
 043                    b.Property<int>("Quantity")
 044                        .HasColumnType("integer");
 045
 046                    b.HasKey("Id");
 047
 048                    b.ToTable("Payments");
 049                });
 50#pragma warning restore 612, 618
 051        }
 52    }
 53}