Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions HomeWork33/.dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
**/.dockerignore
**/.env
**/.git
**/.gitignore
**/.project
**/.settings
**/.toolstarget
**/.vs
**/.vscode
**/.idea
**/*.*proj.user
**/*.dbmdl
**/*.jfm
**/azds.yaml
**/bin
**/charts
**/docker-compose*
**/Dockerfile*
**/node_modules
**/npm-debug.log
**/obj
**/secrets.dev.yaml
**/values.dev.yaml
LICENSE
README.md
4 changes: 4 additions & 0 deletions HomeWork33/.editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[*.cs]

# Default severity for analyzer diagnostics with category 'Usage'
dotnet_analyzer_diagnostic.category-Usage.severity = none
288 changes: 288 additions & 0 deletions HomeWork33/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,288 @@
syntax glob

[Bb]inaries

# Build tools related files
[Tt]ools

### VisualStudio ###

# User-specific files
.suo
.user
.userosscache
.sln.docstates

# Build results
[Dd]ebug
[Dd]ebugPublic
[Rr]elease
[Rr]eleases
x64
x86
build
bld
[Bb]in
[Oo]bj
msbuild.log

# Visual Studio 2015
.vs

# Visual Studio 2015 Pre-CTP6
.sln.ide
.ide

# MSTest test Results
[Tt]est[Rr]esult
[Bb]uild[Ll]og.

#NUNIT
.VisualState.xml
TestResult.xml

# Build Results of an ATL Project
[Dd]ebugPS
[Rr]eleasePS
dlldata.c

_i.c
_p.c
_i.h
.ilk
.meta
.obj
.pch
.pdb
.pgc
.pgd
.rsp
.sbr
.tlb
.tli
.tlh
.tmp
.tmp_proj
.log
.html
.vspscc
.vssscc
.builds
.pidb
.svclog
.scc

# Chutzpah Test files
_Chutzpah

# Visual C++ cache files
ipch
.aps
.ncb
.opensdf
.sdf
.cachefile

# Visual Studio profiler
.psess
.vsp
.vspx

# TFS 2012 Local Workspace
$tf

# Guidance Automation Toolkit
.gpState

# ReSharper is a .NET coding add-in
_ReSharper
.[Rr]e[Ss]harper
.DotSettings.user

# JustCode is a .NET coding addin-in
.JustCode

# TeamCity is a build add-in
_TeamCity

# DotCover is a Code Coverage Tool
.dotCover

# NCrunch
_NCrunch_
.crunch.local.xml

# MightyMoose
.mm.
AutoTest.Net

# Web workbench (sass)
.sass-cache

# Installshield output folder
[Ee]xpress

# DocProject is a documentation generator add-in
DocProjectbuildhelp
DocProjectHelp.HxT
DocProjectHelp.HxC
DocProjectHelp.hhc
DocProjectHelp.hhk
DocProjectHelp.hhp
DocProjectHelpHtml2
DocProjectHelphtml

# Click-Once directory
publish

# Publish Web Output
.[Pp]ublish.xml
.azurePubxml
.pubxml
.publishproj

# NuGet Packages
.nupkg
packages
project.lock.json

# Windows Azure Build Output
csx
.build.csdef

# Windows Store app package directory
AppPackages

# Others
sql
.Cache
ClientBin
[Ss]tyle[Cc]op.
~$
.dbmdl
.dbproj.schemaview
.pfx
.publishsettings
node_modules
.metaproj
.metaproj.tmp
.atom-build.json
tags
TAGS

# RIASilverlight projects
Generated_Code

# Backup & report files from converting an old project file
# to a newer Visual Studio version. Backup files are not needed,
# because we have git ;-)
_UpgradeReport_Files
Backup
UpgradeLog.XML
UpgradeLog.htm

# SQL Server files
.mdf
.ldf

# Business Intelligence projects
.rdl.data
.bim.layout
.bim_.settings

# Microsoft Fakes
FakesAssemblies

### MonoDevelop ###

.pidb
.userprefs

### Windows ###

# Windows image file caches
Thumbs.db
ehthumbs.db

# Folder config file
Desktop.ini

# Recycle Bin used on file shares
$RECYCLE.BIN

# Windows Installer files
.cab
.msi
.msm
.msp

# Windows shortcuts
.lnk

# Common binary extensions on Windows
.exe
.dll
.lib

### Linux ###

~
##

# KDE directory preferences
.directory

### OSX ###

.DS_Store
.AppleDouble
.LSOverride

# Icon must end with two r
Icon

# Thumbnails
._

# Files that might appear on external disk
.Spotlight-V100
.Trashes

# Directories potentially created on remote AFP share
.AppleDB
.AppleDesktop
Network Trash Folder
Temporary Items
.apdisk

# We have some checked in prebuilt generated files
!srcpalprebuiltidl_i.c

# Valid 'debug' folder, that contains CLR debuggin code
!srcdebug

# Ignore folders created by the test build
TestWrappers_x64_debug
TestWrappers_x64_checked
TestWrappers_x64_release

Vagrantfile
.vagrant

# CMake files
CMakeFiles
cmake_install.cmake
CMakeCache.txt
Makefile

# Cross compilation
crossrootfs

#python import files
.pyc

.idea
.generated-resources
.terraform
terraform.tfstate
terraform.tfstate.backup
37 changes: 37 additions & 0 deletions HomeWork33/Catalog.UnitTest/Catalog.UnitTest.csproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>

<IsPackable>false</IsPackable>
<IsTestProject>true</IsTestProject>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="coverlet.collector" Version="6.0.0" />
<PackageReference Include="FluentAssertions" Version="6.12.0" />
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="8.0.5" />
<PackageReference Include="Microsoft.EntityFrameworkCore.Design" Version="8.0.5">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.8.0" />
<PackageReference Include="Moq" Version="4.20.70" />
<PackageReference Include="xunit" Version="2.8.0" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.8.0">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\Catalog\Catalog.Host\Catalog.Host.csproj" />
</ItemGroup>

<ItemGroup>
<Using Include="Xunit" />
</ItemGroup>

</Project>
14 changes: 14 additions & 0 deletions HomeWork33/Catalog.UnitTest/GlobalUsing.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
global using System;
global using System.Collections.Generic;
global using System.Threading.Tasks;
global using AutoMapper;
global using Catalog.Host.Data;
global using Catalog.Host.Repositories.Interfaces;
global using Catalog.Host.Services;
global using Catalog.Host.Services.Interfaces;
global using FluentAssertions;
global using Infrastructure.Services.Interfaces;
global using Microsoft.EntityFrameworkCore.Storage;
global using Microsoft.Extensions.Logging;
global using Moq;
global using Xunit;
Loading