# erkan3034/masketakipsistemi architecture

> Architecture diagram of the GitHub repository erkan3034/masketakipsistemi, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2025-05-27). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/erkan3034/masketakipsistemi
- Repository: https://github.com/erkan3034/masketakipsistemi

## Overview

##### Project type and purpose
- This is a small C#/.NET layered application built for a C# camp assignment.
- It consists of three projects in one solution:
a. Entities: domain model classes (e.g. Person).
b. Business: service interfaces and implementations, plus a connected (external) Mernis SOAP service.
c. WorkAround: the host application (UI or console) that ties everything together.

##### File structure
- Top-level solution: MaskeTakip.sln
- “Entities” (class library): domain entities.
- “Bussines” (class library):
- Abstract folder: IApplicantService, ISupplierService interfaces.
- Concrete folder: ForeignerManager, PersonManager, PttManager implementations.
- Connected Services folder: MernisServiceReference for external SOAP calls.
- “WorkAround” (executable): references Bussines and Entities, includes compiled resources.

##### Key README insight
- No further architectural detail; confirms this is a simple academic/demo project.

a. WorkAround Application (UI/Console)
b. Business Layer
- Service Interfaces (IApplicantService, ISupplierService)
- Service Implementations
- ConnectedService: MernisServiceReference
c. Entities Layer (domain classes)
d. External System: Mernis SOAP endpoint

##### Relationships and interactions
- WorkAround → Business Layer: calls service interfaces.
- Business Layer → Entities Layer: uses Person and other domain objects.
- Business Layer → MernisServiceReference: makes SOAP calls for identity verification.

##### Architectural patterns and design principles
- Layered (onion) architecture:
- Core: Entities (domain).
- Service Layer: Business logic and external calls.
- Presentation/Application Layer: WorkAround.
- Dependency rule: upper layers depend on lower layers, not vice versa.
- Interfaces for loose coupling and testability.

##### Technologies and frameworks
- .NET 6.0 class libraries and console/UI project.
- Connected Services (WCF/Soap) for Mernis integration.

## Diagram (Mermaid)

```mermaid
flowchart TD
    %% Presentation Layer
    Work["WorkAround (UI/Application)\nWorkAround.exe"]:::ui

    %% Business Layer
    subgraph "Business Layer" 
        direction TB
        IApplicant["IApplicantService"]:::service
        ISupplier["ISupplierService"]:::service
        ForeignerManager["ForeignerManager"]:::service
        PersonManager["PersonManager"]:::service
        PttManager["PttManager"]:::service
        subgraph "MernisServiceReference"
            direction TB
            Config["ConnectedService.json"]:::service
            Proxy["Reference.cs"]:::service
        end
    end

    %% Domain Layer
    EntitiesProj["Entities.dll"]:::domain
    Person["Person"]:::domain

    %% External System
    MernisExternal["Mernis SOAP Service"]:::external

    %% Connections
    Work -->|"calls IService methods"| IApplicant
    Work -->|"calls IService methods"| ISupplier

    IApplicant -->|implements| ForeignerManager
    ISupplier -->|implements| PersonManager
    ISupplier -->|implements| PttManager

    ForeignerManager -->|uses| Person
    PersonManager -->|uses| Person
    PttManager -->|uses| Person

    ForeignerManager -->|calls proxy| Proxy
    PersonManager -->|calls proxy| Proxy
    PttManager -->|calls proxy| Proxy

    Proxy -->|"SOAP request/response"| MernisExternal

    EntitiesProj -->|contains| Person

    %% Click Events
    click Work "https://github.com/erkan3034/masketakipsistemi/tree/main/WorkAround/"
    click EntitiesProj "https://github.com/erkan3034/masketakipsistemi/blob/main/Entities/Entities.csproj"
    click Person "https://github.com/erkan3034/masketakipsistemi/blob/main/Entities/Concrete/Person.cs"
    click IApplicant "https://github.com/erkan3034/masketakipsistemi/blob/main/Bussines/Abstract/IApplicantService.cs"
    click ISupplier "https://github.com/erkan3034/masketakipsistemi/blob/main/Bussines/Abstract/ISupplierService.cs"
    click ForeignerManager "https://github.com/erkan3034/masketakipsistemi/blob/main/Bussines/Concrete/ForeignerManager.cs"
    click PersonManager "https://github.com/erkan3034/masketakipsistemi/blob/main/Bussines/Concrete/PersonManager.cs"
    click PttManager "https://github.com/erkan3034/masketakipsistemi/blob/main/Bussines/Concrete/PttManager.cs"
    click Config "https://github.com/erkan3034/masketakipsistemi/blob/main/Bussines/Connected Services/MernisServiceReference/ConnectedService.json"
    click Proxy "https://github.com/erkan3034/masketakipsistemi/blob/main/Bussines/Connected Services/MernisServiceReference/Reference.cs"

    %% Styles
    classDef ui fill:#cce5ff,stroke:#004085,color:#004085;
    classDef service fill:#d4edda,stroke:#155724,color:#155724;
    classDef domain fill:#fff3cd,stroke:#856404,color:#856404;
    classDef external fill:#e2e3e5,stroke:#6c757d,color:#6c757d;
```
