Compare commits

...

5 Commits

Author SHA1 Message Date
Ismail TAHA JANAN d549ec87b9 simple commit
continuous-integration/drone/push Build is failing Details
2 years ago
Ismail TAHA JANAN affb40b2b5 conflict rsolved
continuous-integration/drone/push Build is failing Details
2 years ago
Ismail TAHA JANAN 7b18e512ac o
2 years ago
Ismail TAHA JANAN 3d7cb006af db working fine
2 years ago
Ismail TAHA JANAN c229a49f2c simple commit
2 years ago

@ -31,20 +31,20 @@ namespace cat_cafe.Controllers.Tests
private readonly MapperConfiguration mapperConf = new(mapper => mapper.AddProfile(typeof(CatMapper)));
private readonly DbContextOptions<CatCafeContext> options = new DbContextOptionsBuilder<CatCafeContext>()
.UseInMemoryDatabase(databaseName: "CatCafeTests")
private readonly DbContextOptions<CatCafeDbContext> options = new DbContextOptionsBuilder<CatCafeDbContext>()
.UseSqlite("Data Source=EFCatCafe.db").EnableSensitiveDataLogging()
.Options;
private readonly IMapper mapper;
private readonly CatCafeContext context;
private readonly CatCafeDbContext context;
private readonly CatsController controller;
public CatsControllerTest()
{
mapper = mapperConf.CreateMapper();
context = new CatCafeContext(options);
context = new CatCafeDbContext(options);
controller = new CatsController(context, mapper, logger);
}
@ -53,7 +53,7 @@ namespace cat_cafe.Controllers.Tests
public void BeforeEach()
{
context.Database.EnsureCreated();
context.Cats.AddRange(
context.cats.AddRange(
new Cat
{
Id = 1,

@ -15,10 +15,14 @@
<PackageReference Include="MSTest.TestAdapter" Version="2.2.8" />
<PackageReference Include="MSTest.TestFramework" Version="2.2.8" />
<PackageReference Include="coverlet.collector" Version="3.1.2" />
<PackageReference Include="Microsoft.EntityFrameworkCore.InMemory" Version="6.0.12" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\cat_cafe\cat_cafe.csproj" />
</ItemGroup>
<ItemGroup>
<None Remove="Microsoft.EntityFrameworkCore.InMemory" />
</ItemGroup>
</Project>

@ -0,0 +1,12 @@
{
"version": 1,
"isRoot": true,
"tools": {
"dotnet-ef": {
"version": "6.0.0",
"commands": [
"dotnet-ef"
]
}
}
}

@ -18,11 +18,11 @@ namespace cat_cafe.Controllers
[ApiController]
public class BarsController : ControllerBase
{
private readonly CatCafeContext _context;
private readonly CatCafeDbContext _context;
private readonly IMapper _mapper;
private readonly ILogger <BarsController> _logger;
public BarsController(CatCafeContext context,IMapper mapper, ILogger<BarsController> logger)
public BarsController(CatCafeDbContext context,IMapper mapper, ILogger<BarsController> logger)
{
_context = context;
_mapper = mapper;
@ -33,7 +33,8 @@ namespace cat_cafe.Controllers
[HttpGet]
public async Task<ActionResult<IEnumerable<BarDto>>> GetBars()
{
var bars = _context.Bars
//return await _context.bars.ToListAsync();
var bars = _context.bars
.Include(a => a.cats)
.Select(a => new Bar
{
@ -41,7 +42,7 @@ namespace cat_cafe.Controllers
Name = a.Name,
cats = a.cats.Select(p => new Cat { Name = p.Name, Age = p.Age, Id= p.Id}).ToList()
})
.ToList();
.ToListAsync();
return _mapper.Map<List<BarDto>>(bars);
}
@ -49,7 +50,8 @@ namespace cat_cafe.Controllers
[HttpGet("{id}")]
public async Task<ActionResult<BarDto>> GetBar(long id)
{
var bar = _context.Bars.Include(p => p.cats)
//var bar = await _context.bars.FindAsync(id);
var bar = _context.bars.Include(p => p.cats)
.Select(a => new Bar
{
Id = a.Id,
@ -102,27 +104,23 @@ namespace cat_cafe.Controllers
[HttpPost]
public async Task<ActionResult<BarDto>> PostBar(BarDto barDto)
{
// Bar bar = _mapper.Map<Bar>(barDto);
var bar = _mapper.Map<Bar>(barDto);
_context.Bars.Add(bar);
_context.bars.Add(_mapper.Map<Bar>(barDto)) ;
await _context.SaveChangesAsync();
return CreatedAtAction("GetBar", new { id = barDto.Id }, _mapper.Map<BarDto>(bar));
return CreatedAtAction("GetBar", new { id = barDto.Id }, _mapper.Map<BarDto>(barDto));
}
// DELETE: api/Bars/5
[HttpDelete("{id}")]
public async Task<IActionResult> DeleteBar(long id)
{
var bar = await _context.Bars.FindAsync(id);
var bar = await _context.bars.FindAsync(id);
if (bar == null)
{
return NotFound();
}
_context.Bars.Remove(bar);
_context.bars.Remove(bar);
await _context.SaveChangesAsync();
return NoContent();
@ -130,7 +128,7 @@ namespace cat_cafe.Controllers
private bool BarExists(long id)
{
return _context.Bars.Any(e => e.Id == id);
return _context.bars.Any(e => e.Id == id);
}
}
}

@ -19,11 +19,11 @@ namespace cat_cafe.Controllers
[ApiController]
public class CatsController : ControllerBase
{
private readonly CatCafeContext _context;
private readonly CatCafeDbContext _context;
private readonly IMapper _mapper;
private readonly ILogger<CatsController> _logger;
public CatsController(CatCafeContext context, IMapper mapper, ILogger<CatsController> logger)
public CatsController(CatCafeDbContext context, IMapper mapper, ILogger<CatsController> logger)
{
_mapper = mapper;
_context = context;
@ -34,7 +34,8 @@ namespace cat_cafe.Controllers
[HttpGet]
public async Task<ActionResult<IEnumerable<CatDto>>> GetCats()
{
var cats = await _context.Cats.ToListAsync();
var cats = await _context.cats.ToListAsync();
return _mapper.Map<List<CatDto>>(cats);
return Ok(_mapper.Map<List<CatDto>>(cats));
}
@ -43,7 +44,7 @@ namespace cat_cafe.Controllers
[HttpGet("{id}")]
public async Task<ActionResult<CatDto>> GetCat(long id)
{
var cat = await _context.Cats.FindAsync(id);
var cat = await _context.cats.FindAsync(id);
if (cat == null)
{
@ -91,7 +92,7 @@ namespace cat_cafe.Controllers
public async Task<ActionResult<CatDto>> PostCat(CatDto catDto)
{
Cat cat = _mapper.Map<Cat>(catDto);
_context.Cats.Add(cat);
_context.cats.Add(cat);
await _context.SaveChangesAsync();
return CreatedAtAction("GetCat", new { id = catDto.Id }, _mapper.Map<CatDto>(cat));
@ -101,13 +102,13 @@ namespace cat_cafe.Controllers
[HttpDelete("{id}")]
public async Task<IActionResult> DeleteCat(long id)
{
var cat = await _context.Cats.FindAsync(id);
var cat = await _context.cats.FindAsync(id);
if (cat == null)
{
return NotFound();
}
_context.Cats.Remove(cat);
_context.cats.Remove(cat);
await _context.SaveChangesAsync();
return NoContent();
@ -115,7 +116,7 @@ namespace cat_cafe.Controllers
private bool CatExists(long id)
{
return _context.Cats.Any(e => e.Id == id);
return _context.cats.Any(e => e.Id == id);
}
}
}

@ -18,11 +18,11 @@ namespace cat_cafe.Controllers
[ApiController]
public class CustomersController : ControllerBase
{
private readonly CatCafeContext _context;
private readonly CatCafeDbContext _context;
private readonly IMapper _mapper;
private readonly ILogger<CustomersController> _logger;
public CustomersController(CatCafeContext context,IMapper mapper,ILogger<CustomersController> logger)
public CustomersController(CatCafeDbContext context,IMapper mapper,ILogger<CustomersController> logger)
{
_context = context;
_mapper = mapper;
@ -34,8 +34,9 @@ namespace cat_cafe.Controllers
public async Task<ActionResult<IEnumerable<CustomerDto>>> GetCustomers()
{
Log.Information(this.Request.Method + " => get All customers");
_logger.LogInformation("hello");
var customers = await _context.Customers.ToListAsync();
var customers = await _context.customers.ToListAsync();
Log.Information(this.Request.Method + " => "
+ this.Response.StatusCode.ToString() + " "
@ -49,7 +50,7 @@ namespace cat_cafe.Controllers
public async Task<ActionResult<CustomerDto>> GetCustomer(long id)
{
Log.Information(this.Request.Method + " => get by ID {@id}",id);
var customer = await _context.Customers.FindAsync(id);
var customer = await _context.customers.FindAsync(id);
if (customer == null)
{
@ -112,7 +113,7 @@ namespace cat_cafe.Controllers
Log.Information(this.Request.Method + " => post customer");
Customer customer = _mapper.Map<Customer>(customerDto);
_context.Customers.Add(customer);
_context.customers.Add(customer);
await _context.SaveChangesAsync();
Log.Information(this.Request.Method + " => "
@ -129,14 +130,14 @@ namespace cat_cafe.Controllers
{
Log.Information(this.Request.Method + " => delete by ID {@id}", id);
var customer = await _context.Customers.FindAsync(id);
var customer = await _context.customers.FindAsync(id);
if (customer == null)
{
Log.Information(this.Request.Method + " => " + NotFound().StatusCode.ToString());
return NotFound();
}
_context.Customers.Remove(customer);
_context.customers.Remove(customer);
await _context.SaveChangesAsync();
Log.Information(this.Request.Method + " => "
@ -149,7 +150,7 @@ namespace cat_cafe.Controllers
private bool CustomerExists(long id)
{
return _context.Customers.Any(e => e.Id == id);
return _context.customers.Any(e => e.Id == id);
}
}
}

Binary file not shown.

@ -0,0 +1,90 @@
// <auto-generated />
using System;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Migrations;
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
using cat_cafe.Repositories;
#nullable disable
namespace cat_cafe.Migrations
{
[DbContext(typeof(CatCafeDbContext))]
[Migration("20230204085149_myMigrationNa")]
partial class myMigrationNa
{
protected override void BuildTargetModel(ModelBuilder modelBuilder)
{
#pragma warning disable 612, 618
modelBuilder.HasAnnotation("ProductVersion", "6.0.12");
modelBuilder.Entity("cat_cafe.Entities.Bar", b =>
{
b.Property<long>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("INTEGER");
b.Property<string>("Name")
.HasColumnType("TEXT");
b.HasKey("Id");
b.ToTable("bars");
});
modelBuilder.Entity("cat_cafe.Entities.Cat", b =>
{
b.Property<long>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("INTEGER");
b.Property<int>("Age")
.HasColumnType("INTEGER");
b.Property<long?>("BarId")
.HasColumnType("INTEGER");
b.Property<string>("Name")
.HasColumnType("TEXT");
b.HasKey("Id");
b.HasIndex("BarId");
b.ToTable("cats");
});
modelBuilder.Entity("cat_cafe.Entities.Customer", b =>
{
b.Property<long>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("INTEGER");
b.Property<int>("Age")
.HasColumnType("INTEGER");
b.Property<string>("FullName")
.IsRequired()
.HasColumnType("TEXT");
b.HasKey("Id");
b.ToTable("customers");
});
modelBuilder.Entity("cat_cafe.Entities.Cat", b =>
{
b.HasOne("cat_cafe.Entities.Bar", null)
.WithMany("cats")
.HasForeignKey("BarId");
});
modelBuilder.Entity("cat_cafe.Entities.Bar", b =>
{
b.Navigation("cats");
});
#pragma warning restore 612, 618
}
}
}

@ -0,0 +1,76 @@
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace cat_cafe.Migrations
{
public partial class myMigrationNa : Migration
{
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.CreateTable(
name: "bars",
columns: table => new
{
Id = table.Column<long>(type: "INTEGER", nullable: false)
.Annotation("Sqlite:Autoincrement", true),
Name = table.Column<string>(type: "TEXT", nullable: true)
},
constraints: table =>
{
table.PrimaryKey("PK_bars", x => x.Id);
});
migrationBuilder.CreateTable(
name: "customers",
columns: table => new
{
Id = table.Column<long>(type: "INTEGER", nullable: false)
.Annotation("Sqlite:Autoincrement", true),
FullName = table.Column<string>(type: "TEXT", nullable: false),
Age = table.Column<int>(type: "INTEGER", nullable: false)
},
constraints: table =>
{
table.PrimaryKey("PK_customers", x => x.Id);
});
migrationBuilder.CreateTable(
name: "cats",
columns: table => new
{
Id = table.Column<long>(type: "INTEGER", nullable: false)
.Annotation("Sqlite:Autoincrement", true),
Name = table.Column<string>(type: "TEXT", nullable: true),
Age = table.Column<int>(type: "INTEGER", nullable: false),
BarId = table.Column<long>(type: "INTEGER", nullable: true)
},
constraints: table =>
{
table.PrimaryKey("PK_cats", x => x.Id);
table.ForeignKey(
name: "FK_cats_bars_BarId",
column: x => x.BarId,
principalTable: "bars",
principalColumn: "Id");
});
migrationBuilder.CreateIndex(
name: "IX_cats_BarId",
table: "cats",
column: "BarId");
}
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropTable(
name: "cats");
migrationBuilder.DropTable(
name: "customers");
migrationBuilder.DropTable(
name: "bars");
}
}
}

@ -0,0 +1,88 @@
// <auto-generated />
using System;
using Microsoft.EntityFrameworkCore;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
using cat_cafe.Repositories;
#nullable disable
namespace cat_cafe.Migrations
{
[DbContext(typeof(CatCafeDbContext))]
partial class CatCafeDbContextModelSnapshot : ModelSnapshot
{
protected override void BuildModel(ModelBuilder modelBuilder)
{
#pragma warning disable 612, 618
modelBuilder.HasAnnotation("ProductVersion", "6.0.12");
modelBuilder.Entity("cat_cafe.Entities.Bar", b =>
{
b.Property<long>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("INTEGER");
b.Property<string>("Name")
.HasColumnType("TEXT");
b.HasKey("Id");
b.ToTable("bars");
});
modelBuilder.Entity("cat_cafe.Entities.Cat", b =>
{
b.Property<long>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("INTEGER");
b.Property<int>("Age")
.HasColumnType("INTEGER");
b.Property<long?>("BarId")
.HasColumnType("INTEGER");
b.Property<string>("Name")
.HasColumnType("TEXT");
b.HasKey("Id");
b.HasIndex("BarId");
b.ToTable("cats");
});
modelBuilder.Entity("cat_cafe.Entities.Customer", b =>
{
b.Property<long>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("INTEGER");
b.Property<int>("Age")
.HasColumnType("INTEGER");
b.Property<string>("FullName")
.IsRequired()
.HasColumnType("TEXT");
b.HasKey("Id");
b.ToTable("customers");
});
modelBuilder.Entity("cat_cafe.Entities.Cat", b =>
{
b.HasOne("cat_cafe.Entities.Bar", null)
.WithMany("cats")
.HasForeignKey("BarId");
});
modelBuilder.Entity("cat_cafe.Entities.Bar", b =>
{
b.Navigation("cats");
});
#pragma warning restore 612, 618
}
}
}

@ -2,6 +2,9 @@ using Microsoft.EntityFrameworkCore;
using cat_cafe.Repositories;
using Serilog;
using Serilog.Sinks.File;
using System.Diagnostics;
using cat_cafe.Entities;
var builder = WebApplication.CreateBuilder(args);
@ -10,7 +13,28 @@ Log.Logger = new LoggerConfiguration().MinimumLevel.Information().WriteTo.File("
// Add services to the container.
builder.Services.AddControllers();
builder.Services.AddDbContext<CatCafeContext>(opt => opt.UseInMemoryDatabase("CatCafe"));
builder.Services.AddDbContext<CatCafeDbContext>();
//builder.Services.AddDbContext<CatContext>(opt =>
//opt.UseInMemoryDatabase("CatCafe"));
//builder.Services.AddDbContext<BarContext>(opt =>
//opt.UseSqlite("CatCafe"));
//builder.Services.AddDbContext<CatCafeDbContext>(opt =>
//opt.UseSqlite("$Data Source ={CatCafe}"));
try
{
// DB stuff when the app opens
using (CatCafeDbContext db = new())
{
}
}
catch (Exception ex) { Console.WriteLine($"{ex.Message}\n... Couldn't use the database"); }
// Learn more about configuring Swagger/OpenAPI at https://aka.ms/aspnetcore/swashbuckle
builder.Services.AddEndpointsApiExplorer();
builder.Services.AddSwaggerGen();
builder.Services.AddAutoMapper(typeof(Program));

@ -0,0 +1,17 @@
//using cat_cafe.Entities;
//using Microsoft.EntityFrameworkCore;
//using System;
//namespace cat_cafe.Repositories
//{
// public class BarContext : DbContext
// {
// public BarContext(DbContextOptions<BarContext> options)
// : base(options)
// {
// }
// public DbSet<Bar> Bars { get; set; } = null!;
// }
//}

@ -0,0 +1,33 @@
using System;
using Microsoft.EntityFrameworkCore;
using cat_cafe.Entities;
namespace cat_cafe.Repositories
{
public class CatCafeDbContext:DbContext
{
public DbSet<Customer> customers { get; set; }
public DbSet<Bar> bars { get; set; }
public DbSet<Cat> cats { get; set; }
public CatCafeDbContext(DbContextOptions<CatCafeDbContext> opts)
:base(opts)
{
Database.EnsureCreated();
}
public CatCafeDbContext()
{
}
protected override void OnConfiguring(DbContextOptionsBuilder optionsBuilder)
{
if (!optionsBuilder.IsConfigured) optionsBuilder.UseSqlite("Data Source=EFCatCafe.db").EnableSensitiveDataLogging();
}
}
}

@ -1,18 +1,16 @@
using cat_cafe.Entities;
using Microsoft.EntityFrameworkCore;
//using cat_cafe.Entities;
//using Microsoft.EntityFrameworkCore;
namespace cat_cafe.Repositories
{
public class CatCafeContext : DbContext
{
public CatCafeContext(DbContextOptions<CatCafeContext> options)
: base(options)
{
}
//namespace cat_cafe.Repositories
//{
// public class CatContext : DbContext
// {
// public CatContext(DbContextOptions<CatContext> options)
// : base(options)
// {
// }
public DbSet<Cat> Cats { get; set; } = null!;
public DbSet<Bar> Bars { get; set; } = null!;
public DbSet<Customer> Customers { get; set; } = null!;
// public DbSet<Cat> Cats { get; set; } = null!;
}
}
// }
//}

@ -0,0 +1,33 @@
//using System;
//using cat_cafe.Entities;
//using Microsoft.EntityFrameworkCore;
//namespace cat_cafe.Repositories
//{
// public class CustomerContext:DbContext
// {
// public readonly IConfiguration configuration;
// public string DbPath { get; }
// public CustomerContext(IConfiguration _configuration)
// {
// configuration = _configuration;
// var folder = Environment.SpecialFolder.LocalApplicationData;
// var path = Environment.GetFolderPath(folder);
// DbPath = System.IO.Path.Join(path, "CatCafe.db");
// }
// protected override void OnConfiguring(DbContextOptionsBuilder opts)
// {
// opts.UseSqlite($"Data Source=DbPath.db");
// }
// /*public CustomerContext(DbContextOptions<CustomerContext> options)
// : base(options)
// { }*/
// public DbSet<Customer> Customers { get; set; } = null!;
// }
//}

@ -4,10 +4,10 @@
<TargetFramework>net6.0</TargetFramework>
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
<StartWorkingDirectory>$(MSBuildProjectDirectory)</StartWorkingDirectory>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.EntityFrameworkCore.InMemory" Version="7.0.1" />
<PackageReference Include="Microsoft.EntityFrameworkCore.Sqlite" Version="6.0.12" />
<PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer" Version="6.0.12" />
<PackageReference Include="Microsoft.EntityFrameworkCore.Tools" Version="6.0.12">
@ -27,5 +27,6 @@
<None Remove="Serilog.Extensions.Logging.File" />
<None Remove="Serilog" />
<None Remove="Serilog.Sinks.File" />
<None Remove="Microsoft.EntityFrameworkCore" />
</ItemGroup>
</Project>

@ -0,0 +1,152 @@
2023-01-18 08:31:45.368 +01:00 [INF] hello i m here
2023-01-18 09:01:20.438 +01:00 [INF] GET
2023-01-18 09:04:06.569 +01:00 [INF] GET => cat_cafe.Repositories.CustomerContext
2023-01-18 09:06:53.085 +01:00 [INF] GET => get All customers
2023-01-18 09:06:53.206 +01:00 [INF] GET => System.Collections.Generic.List`1[cat_cafe.Entities.Customer]
2023-01-18 09:06:54.335 +01:00 [INF] GET => get All customers
2023-01-18 09:06:54.345 +01:00 [INF] GET => System.Collections.Generic.List`1[cat_cafe.Entities.Customer]
2023-01-18 09:09:10.113 +01:00 [INF] GET => get All customers
2023-01-18 09:09:10.234 +01:00 [INF] GET => Microsoft.AspNetCore.Mvc.OkResult
2023-01-18 09:09:11.257 +01:00 [INF] GET => get All customers
2023-01-18 09:09:11.267 +01:00 [INF] GET => Microsoft.AspNetCore.Mvc.OkResult
2023-01-18 09:09:21.627 +01:00 [INF] GET => get All customers
2023-01-18 09:09:21.659 +01:00 [INF] GET => Microsoft.AspNetCore.Mvc.OkResult
2023-01-18 09:09:22.556 +01:00 [INF] GET => get All customers
2023-01-18 09:09:22.556 +01:00 [INF] GET => Microsoft.AspNetCore.Mvc.OkResult
2023-01-18 09:13:26.188 +01:00 [INF] GET => get All customers
2023-01-18 09:13:26.308 +01:00 [INF] GET => 200
2023-01-18 09:13:27.367 +01:00 [INF] GET => get All customers
2023-01-18 09:13:27.377 +01:00 [INF] GET => 200
2023-01-18 09:17:33.374 +01:00 [INF] GET => get by ID
2023-01-18 09:17:33.521 +01:00 [INF] GET => 200
2023-01-18 09:27:39.325 +01:00 [INF] GET => get by ID
2023-01-18 09:27:39.471 +01:00 [INF] GET => Microsoft.AspNetCore.Mvc.NotFoundResult
2023-01-18 09:27:40.257 +01:00 [INF] GET => get by ID
2023-01-18 09:27:40.285 +01:00 [INF] GET => Microsoft.AspNetCore.Mvc.NotFoundResult
2023-01-18 09:28:36.156 +01:00 [INF] GET => get by ID
2023-01-18 09:28:36.299 +01:00 [INF] GET => 404
2023-01-18 09:32:05.645 +01:00 [INF] GET => get by ID 98
2023-01-18 09:32:05.788 +01:00 [INF] GET => 404
2023-01-18 09:36:20.083 +01:00 [INF] GET => get All customers
2023-01-18 09:36:20.203 +01:00 [INF] GET => 200System.Collections.Generic.List`1[cat_cafe.Entities.Customer]0
2023-01-18 09:36:21.191 +01:00 [INF] GET => get All customers
2023-01-18 09:36:21.200 +01:00 [INF] GET => 200System.Collections.Generic.List`1[cat_cafe.Entities.Customer]0
2023-01-18 09:37:41.477 +01:00 [INF] GET => get All customers
2023-01-18 09:37:41.599 +01:00 [INF] GET => 200System.Collections.Generic.List`1[cat_cafe.Entities.Customer]0
2023-01-18 09:48:40.093 +01:00 [INF] GET => get All customers
2023-01-18 09:48:40.216 +01:00 [INF] GET => 200List`10
2023-01-18 09:49:47.745 +01:00 [INF] GET => get All customers
2023-01-18 09:50:13.854 +01:00 [INF] GET => get All customers
2023-01-18 10:12:48.174 +01:00 [INF] GET => get All customers
2023-01-18 10:12:48.299 +01:00 [INF] GET => 200 System.Collections.Generic.List`1[cat_cafe.Entities.Customer] 0
2023-01-18 13:40:12.116 +01:00 [INF] GET => get All customers
2023-01-18 13:40:12.243 +01:00 [INF] GET => 200 length[System.Collections.Generic.List`1[cat_cafe.Entities.Customer]] 0
2023-01-18 13:49:39.432 +01:00 [INF] GET => get All customers
2023-01-18 13:49:39.556 +01:00 [INF] GET => 200 System.Collections.Generic.List`1[cat_cafe.Entities.Customer] length[0]
2023-01-18 13:49:40.662 +01:00 [INF] GET => get All customers
2023-01-18 13:49:40.671 +01:00 [INF] GET => 200 System.Collections.Generic.List`1[cat_cafe.Entities.Customer] length[0]
2023-01-18 13:50:02.846 +01:00 [INF] GET => get All customers
2023-01-18 13:50:02.858 +01:00 [INF] GET => 200 System.Collections.Generic.List`1[cat_cafe.Entities.Customer] length[3]
2023-01-18 13:50:16.312 +01:00 [INF] GET => get by ID 1
2023-01-18 13:50:16.372 +01:00 [INF] GET => 200 cat_cafe.Entities.Customer cat_cafe.Entities.Customer
2023-01-18 14:02:49.706 +01:00 [INF] GET => get by ID 1
2023-01-18 14:02:49.853 +01:00 [INF] GET => 200 cat_cafe.Entities.Customer {"Id":1,"FullName":"string","Age":0}
2023-01-18 14:02:50.942 +01:00 [INF] GET => get by ID 1
2023-01-18 14:02:50.955 +01:00 [INF] GET => 200 cat_cafe.Entities.Customer {"Id":1,"FullName":"string","Age":0}
2023-01-18 14:40:46.920 +01:00 [INF] program start
2023-01-18 14:41:47.647 +01:00 [INF] program startMicrosoft.AspNetCore.Server.Kestrel.Core.Internal.ServerAddressesCollection+PublicServerAddressesCollection
2023-01-18 14:46:02.825 +01:00 [INF] program start
2023-01-18 15:11:52.392 +01:00 [INF] program start
2023-01-18 15:12:52.666 +01:00 [INF] POST => post customer
2023-01-18 15:12:52.811 +01:00 [INF] POST => 201 cat_cafe.Entities.Customer {"Id":1,"FullName":"string","Age":0}
2023-01-18 15:12:57.721 +01:00 [INF] POST => post customer
2023-01-18 15:12:57.774 +01:00 [INF] POST => 201 cat_cafe.Entities.Customer {"Id":2,"FullName":"string","Age":0}
2023-01-18 15:13:05.862 +01:00 [INF] POST => post customer
2023-01-18 15:13:05.878 +01:00 [INF] POST => 201 cat_cafe.Entities.Customer {"Id":3,"FullName":null,"Age":0}
2023-01-18 15:13:20.942 +01:00 [INF] GET => get All customers
2023-01-18 15:13:21.019 +01:00 [INF] GET => 200 System.Collections.Generic.List`1[cat_cafe.Entities.Customer] length[3]
2023-01-18 15:14:29.887 +01:00 [INF] program start
2023-01-18 15:14:45.101 +01:00 [INF] POST => post customer
2023-01-18 16:06:58.681 +01:00 [INF] program start
2023-01-18 16:07:24.045 +01:00 [INF] POST => post customer
2023-01-18 16:07:24.221 +01:00 [INF] POST => 201 cat_cafe.Entities.Customer {"Id":1,"FullName":"string","Age":0}
2023-01-18 16:09:15.539 +01:00 [INF] POST => post customer
2023-01-18 16:09:15.575 +01:00 [INF] POST => 201 cat_cafe.Entities.Customer {"Id":2,"FullName":"string","Age":0}
2023-01-18 16:09:16.137 +01:00 [INF] POST => post customer
2023-01-18 16:09:16.155 +01:00 [INF] POST => 201 cat_cafe.Entities.Customer {"Id":3,"FullName":"string","Age":0}
2023-01-18 16:09:16.606 +01:00 [INF] POST => post customer
2023-01-18 16:09:16.608 +01:00 [INF] POST => 201 cat_cafe.Entities.Customer {"Id":4,"FullName":"string","Age":0}
2023-01-18 16:09:17.073 +01:00 [INF] POST => post customer
2023-01-18 16:09:17.075 +01:00 [INF] POST => 201 cat_cafe.Entities.Customer {"Id":5,"FullName":"string","Age":0}
2023-01-18 16:09:17.497 +01:00 [INF] POST => post customer
2023-01-18 16:09:17.499 +01:00 [INF] POST => 201 cat_cafe.Entities.Customer {"Id":6,"FullName":"string","Age":0}
2023-01-18 16:10:45.955 +01:00 [INF] program start
2023-01-18 16:11:14.814 +01:00 [INF] POST => post customer
2023-01-18 16:11:14.980 +01:00 [INF] POST => 201 cat_cafe.Entities.Customer {"Id":1,"FullName":"string","Age":0}
2023-01-18 16:20:42.582 +01:00 [INF] program start
2023-01-18 16:21:45.996 +01:00 [INF] program start
2023-01-18 16:21:58.069 +01:00 [INF] POST => post customer
2023-01-18 16:21:58.244 +01:00 [INF] POST => 201 cat_cafe.Entities.Customer {"Id":1,"FullName":"string","Age":0}
2023-01-18 16:24:20.049 +01:00 [INF] PUT => put by ID 1
2023-01-18 16:24:20.052 +01:00 [INF] PUT => 400 IDs not matching
2023-01-18 16:24:29.668 +01:00 [INF] PUT => put by ID 1
2023-01-18 16:24:29.705 +01:00 [INF] PUT => 200 cat_cafe.Entities.Customer {"Id":1,"FullName":"string","Age":0}
2023-01-18 16:24:41.242 +01:00 [INF] GET => get All customers
2023-01-18 16:24:41.331 +01:00 [INF] GET => 200 System.Collections.Generic.List`1[cat_cafe.Entities.Customer] length[1]
2023-01-18 16:24:50.036 +01:00 [INF] PUT => put by ID 1
2023-01-18 16:24:50.038 +01:00 [INF] PUT => 200 cat_cafe.Entities.Customer {"Id":1,"FullName":"stringdfdfdf","Age":0}
2023-01-18 16:25:01.929 +01:00 [INF] GET => get All customers
2023-01-18 16:25:01.930 +01:00 [INF] GET => 200 System.Collections.Generic.List`1[cat_cafe.Entities.Customer] length[1]
2023-01-18 16:26:22.655 +01:00 [INF] program start
2023-01-21 08:07:49.648 +01:00 [INF] program start
2023-01-21 08:22:24.735 +01:00 [INF] program start
2023-01-21 08:45:51.715 +01:00 [INF] program start
2023-01-21 08:46:50.522 +01:00 [INF] program start
2023-01-21 08:51:20.382 +01:00 [INF] program start
2023-01-21 09:52:51.283 +01:00 [INF] program start
2023-01-21 09:53:00.966 +01:00 [INF] POST => post customer
2023-01-28 10:43:30.841 +01:00 [INF] program start
2023-01-28 10:43:40.549 +01:00 [INF] GET => get All customers
2023-01-28 10:44:16.773 +01:00 [INF] program start
2023-01-28 10:44:22.429 +01:00 [INF] GET => get All customers
2023-01-28 10:54:58.453 +01:00 [INF] program start
2023-01-28 10:55:31.556 +01:00 [INF] program start
2023-02-04 08:16:09.059 +01:00 [INF] program start
2023-02-04 08:17:13.242 +01:00 [INF] program start
2023-02-04 08:33:04.111 +01:00 [INF] program start
2023-02-04 08:33:11.901 +01:00 [INF] GET => get All customers
2023-02-04 09:34:41.222 +01:00 [INF] program start
2023-02-04 09:38:43.323 +01:00 [INF] program start
2023-02-04 09:44:32.881 +01:00 [INF] program start
2023-02-04 09:44:44.716 +01:00 [INF] GET => get All customers
2023-02-04 09:45:51.387 +01:00 [INF] program start
2023-02-04 09:45:58.688 +01:00 [INF] GET => get All customers
2023-02-04 09:51:59.042 +01:00 [INF] program start
2023-02-04 09:52:06.882 +01:00 [INF] GET => get All customers
2023-02-04 09:52:58.838 +01:00 [INF] program start
2023-02-04 09:53:07.179 +01:00 [INF] GET => get All customers
2023-02-04 09:53:07.239 +01:00 [INF] GET => 200 System.Collections.Generic.List`1[cat_cafe.Entities.Customer] length[0]
2023-02-04 09:53:21.763 +01:00 [INF] POST => post customer
2023-02-04 09:53:21.869 +01:00 [INF] POST => 201 cat_cafe.Entities.Customer {"Id":1,"FullName":"string","Age":0}
2023-02-04 09:53:25.604 +01:00 [INF] POST => post customer
2023-02-04 09:53:25.608 +01:00 [INF] POST => 201 cat_cafe.Entities.Customer {"Id":2,"FullName":"string","Age":0}
2023-02-04 09:53:28.472 +01:00 [INF] POST => post customer
2023-02-04 09:53:28.478 +01:00 [INF] POST => 201 cat_cafe.Entities.Customer {"Id":3,"FullName":"string","Age":0}
2023-02-04 09:53:32.476 +01:00 [INF] GET => get All customers
2023-02-04 09:53:32.486 +01:00 [INF] GET => 200 System.Collections.Generic.List`1[cat_cafe.Entities.Customer] length[3]
2023-02-04 09:53:40.756 +01:00 [INF] program start
2023-02-04 09:53:50.214 +01:00 [INF] GET => get All customers
2023-02-04 09:53:50.290 +01:00 [INF] GET => 200 System.Collections.Generic.List`1[cat_cafe.Entities.Customer] length[3]
2023-02-04 11:47:11.896 +01:00 [INF] program start
2023-02-04 11:47:24.495 +01:00 [INF] GET => get All customers
2023-02-04 11:47:24.570 +01:00 [INF] GET => 200 System.Collections.Generic.List`1[cat_cafe.Entities.Customer] length[3]
2023-02-04 11:47:45.623 +01:00 [INF] POST => post customer
2023-02-04 11:47:45.710 +01:00 [INF] POST => 201 cat_cafe.Entities.Customer {"Id":4,"FullName":"string","Age":0}
2023-02-04 11:47:47.622 +01:00 [INF] POST => post customer
2023-02-04 11:47:47.627 +01:00 [INF] POST => 201 cat_cafe.Entities.Customer {"Id":5,"FullName":"string","Age":0}
2023-02-04 11:47:57.417 +01:00 [INF] GET => get All customers
2023-02-04 11:47:57.421 +01:00 [INF] GET => 200 System.Collections.Generic.List`1[cat_cafe.Entities.Customer] length[5]
2023-02-04 11:48:05.671 +01:00 [INF] program start
2023-02-04 11:48:15.442 +01:00 [INF] GET => get All customers
2023-02-04 11:48:15.516 +01:00 [INF] GET => 200 System.Collections.Generic.List`1[cat_cafe.Entities.Customer] length[5]
2023-02-04 12:00:49.695 +01:00 [INF] program start
Loading…
Cancel
Save