<commit_before>﻿using AutoReservation.Common.Interfaces;
using System;
using System.Diagnostics;
using AutoReservation.Common.DataTransferObjects;
using System.Collections.Generic;
using AutoReservation.BusinessLayer;


namespace AutoReservation.Service.Wcf
{
    public class AutoReservationService: IAutoReservationService
    {
        private AutoReservationBusinessComponent db = new AutoReservationBusinessComponent();
        private static void WriteActualMethod()
        {
            Console.WriteLine("Calling: " + new StackTrace().GetFrame(1).GetMethod().Name);
        }

        public void InsertAuto(AutoDto auto)
        {
            WriteActualMethod();
            var dbAuto = auto.ConvertToEntity();
            db.InsertAuto(dbAuto);
        }

        public void InsertKunde(KundeDto kunde)
        {
            WriteActualMethod();
            var dbKunde = kunde.ConvertToEntity();
            
            throw new NotImplementedException();
        }

        public void InsertReservation(ReservationDto reservation)
        {
            WriteActualMethod();
            throw new NotImplementedException();
        }

        public void DeleteAuto(AutoDto auto)
        {
            WriteActualMethod();
            throw new NotImplementedException();
        }

        public void DeleteKunde(KundeDto kunde)
        {
            WriteActualMethod();
            throw new NotImplementedException();
        }

        public void DeleteReservation(ReservationDto reservation)
        {
            WriteActualMethod();
            throw new NotImplementedException();
        }

        public List<AutoDto> Autos()
        {
            WriteActualMethod();
            throw new NotImplementedException();
        }

        public List<KundeDto> Kunden()
        {
            WriteActualMethod();
            throw new NotImplementedException();
        }

        public List<ReservationDto> Reservationen()
        {
            WriteActualMethod();
            throw new NotImplementedException();
        }

        public AutoDto getAuto(int id)
        {
            WriteActualMethod();
            throw new NotImplementedException();
        }

        public KundeDto getKunde(int id)
        {
            WriteActualMethod();
            throw new NotImplementedException();
        }

        public ReservationDto getReservation(int id)
        {
            WriteActualMethod();
            throw new NotImplementedException();
        }

        public void UpdateAuto(AutoDto original, AutoDto modified)
        {
            WriteActualMethod();
            throw new NotImplementedException();
        }

        public void UpdateKunde(KundeDto original, KundeDto modified)
        {
            WriteActualMethod();
            throw new NotImplementedException();
        }

        public void UpdateReservation(ReservationDto original, ReservationDto modified)
        {
            WriteActualMethod();
            throw new NotImplementedException();
        }
    }
}<commit_msg>Implemented some Servicefunctions<commit_after>﻿using AutoReservation.Common.Interfaces;
using System;
using System.Diagnostics;
using AutoReservation.Common.DataTransferObjects;
using System.Collections.Generic;
using AutoReservation.BusinessLayer;


namespace AutoReservation.Service.Wcf
{
    public class AutoReservationService: IAutoReservationService
    {
        private AutoReservationBusinessComponent db = new AutoReservationBusinessComponent();
        private static void WriteActualMethod()
        {
            Console.WriteLine("Calling: " + new StackTrace().GetFrame(1).GetMethod().Name);
        }

        public void InsertAuto(AutoDto auto)
        {
            WriteActualMethod();
            var dbAuto = auto.ConvertToEntity();
            db.InsertAuto(dbAuto);
        }

        public void InsertKunde(KundeDto kunde)
        {
            WriteActualMethod();
            var dbKunde = kunde.ConvertToEntity();
            db.InsertKunde(dbKunde);
        }

        public void InsertReservation(ReservationDto reservation)
        {
            WriteActualMethod();
            var dbReservation = reservation.ConvertToEntity();
            db.InsertReservation(dbReservation);
        }

        public void DeleteAuto(AutoDto auto)
        {
            WriteActualMethod();
            var dbAuto = auto.ConvertToEntity();
            db.DeleteAuto(dbAuto);
        }

        public void DeleteKunde(KundeDto kunde)
        {
            WriteActualMethod();
            var dbKunde = kunde.ConvertToEntity();
            db.DeleteKunde(dbKunde);
        }

        public void DeleteReservation(ReservationDto reservation)
        {
            WriteActualMethod();
            var dbResevation = reservation.ConvertToEntity();
            db.DeleteReservation(dbResevation);
        }

        public List<AutoDto> Autos()
        {
            WriteActualMethod();
            throw new NotImplementedException();
        }

        public List<KundeDto> Kunden()
        {
            WriteActualMethod();
            throw new NotImplementedException();
        }

        public List<ReservationDto> Reservationen()
        {
            WriteActualMethod();
            throw new NotImplementedException();
        }

        public AutoDto getAuto(int id)
        {
            WriteActualMethod();
            throw new NotImplementedException();
        }

        public KundeDto getKunde(int id)
        {
            WriteActualMethod();
            throw new NotImplementedException();
        }

        public ReservationDto getReservation(int id)
        {
            WriteActualMethod();
            throw new NotImplementedException();
        }

        public void UpdateAuto(AutoDto original, AutoDto modified)
        {
            WriteActualMethod();
            var dbOrginal = original.ConvertToEntity();
            var dbModified = modified.ConvertToEntity();
            db.UpdateAuto(dbOrginal, dbModified);
        }

        public void UpdateKunde(KundeDto original, KundeDto modified)
        {
            WriteActualMethod();
            var dbOrginal = original.ConvertToEntity();
            var dbModified = modified.ConvertToEntity();
            db.UpdateKunde(dbOrginal, dbModified);
        }

        public void UpdateReservation(ReservationDto original, ReservationDto modified)
        {
            WriteActualMethod();
            var dbOrginal = original.ConvertToEntity();
            var dbModified = modified.ConvertToEntity();
            db.UpdateReservation(dbOrginal, dbModified);
        }
    }
}
{'fraction_non_alphanumeric': 0.0753723484278622, 'fraction_numerical': 0.00030088761847449976, 'mean_word_length': 1.963887650468123, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5102776', 'n_tokens_mistral': 1632, 'n_tokens_neox': 1618, 'n_words': 333}