{"id":21513,"date":"2025-05-19T11:30:14","date_gmt":"2025-05-19T08:30:14","guid":{"rendered":"https:\/\/fatihsoysal.com\/blog\/net-unit-testlerinde-castle-dynamic-proxy-kullanimi\/"},"modified":"2025-05-19T11:30:14","modified_gmt":"2025-05-19T08:30:14","slug":"net-unit-testlerinde-castle-dynamic-proxy-kullanimi","status":"publish","type":"post","link":"https:\/\/fatihsoysal.com\/blog\/net-unit-testlerinde-castle-dynamic-proxy-kullanimi\/","title":{"rendered":".NET Unit Testlerinde Castle Dynamic Proxy Kullan\u0131m\u0131"},"content":{"rendered":"<p><body><\/p>\n<p>.NET Unit Testlerinde Castle Dynamic Proxy Kullan\u0131m\u0131<\/p>\n<p>Merhaba!  Bu makalede, .NET ekosisteminde birim testlerini geli\u015ftirmek i\u00e7in olduk\u00e7a g\u00fc\u00e7l\u00fc bir ara\u00e7 olan Castle Dynamic Proxy&#8217;nin nas\u0131l kullan\u0131laca\u011f\u0131n\u0131 detayl\u0131 olarak ele alaca\u011f\u0131z. \u00d6zellikle karma\u015f\u0131k ba\u011f\u0131ml\u0131l\u0131klar\u0131 olan s\u0131n\u0131flar\u0131 test ederken,  bu k\u00fct\u00fcphane size b\u00fcy\u00fck kolayl\u0131k sa\u011flayacakt\u0131r.  \u00d6ncelikle Castle Dynamic Proxy&#8217;nin ne oldu\u011funu ve neden kullanmam\u0131z gerekti\u011fini a\u00e7\u0131klayarak ba\u015flayal\u0131m.<\/p>\n<h2>Castle Dynamic Proxy Nedir?<\/h2>\n<p>Castle Dynamic Proxy, \u00e7al\u0131\u015fma zaman\u0131nda proxy nesneleri olu\u015fturman\u0131za olanak tan\u0131yan g\u00fc\u00e7l\u00fc bir .NET k\u00fct\u00fcphanesidir.  Bu proxy nesneler, hedef nesnenizin davran\u0131\u015f\u0131n\u0131 de\u011fi\u015ftirmeden,  \u00f6zellikle y\u00f6ntem \u00e7a\u011fr\u0131lar\u0131 \u00f6ncesi veya sonras\u0131nda ek i\u015flemler ger\u00e7ekle\u015ftirmenize imkan tan\u0131r. Birim testlerinde bu \u00f6zellik,  ba\u011f\u0131ml\u0131l\u0131k enjeksiyonu ve mocking gibi tekniklerde olduk\u00e7a kullan\u0131\u015fl\u0131d\u0131r.  \u00d6rne\u011fin, bir veritaban\u0131 i\u015flemi yapan metodunuz varsa,  test s\u0131ras\u0131nda ger\u00e7ek veritaban\u0131na eri\u015fim yerine,  Castle Dynamic Proxy ile bu metodun davran\u0131\u015f\u0131n\u0131 taklit eden bir proxy nesne olu\u015fturabilirsiniz.  Bu sayede, testleriniz h\u0131zl\u0131, g\u00fcvenilir ve ba\u011f\u0131ms\u0131z hale gelir.<\/p>\n<h2>Castle Dynamic Proxy&#8217;yi Birim Testlerinde Kullanma<\/h2>\n<p>\u015eimdi, Castle Dynamic Proxy&#8217;yi kullanarak birim testlerinde mocking nas\u0131l yap\u0131laca\u011f\u0131n\u0131 bir \u00f6rnekle a\u00e7\u0131klayal\u0131m.  A\u015fa\u011f\u0131daki kodda,  bir ProductService s\u0131n\u0131f\u0131n\u0131n  bir IDataAccess ba\u011f\u0131ml\u0131l\u0131\u011f\u0131na sahip oldu\u011funu varsayal\u0131m:<\/p>\n<pre><code class=\"language-csharp\">\npublic interface IDataAccess\n{\n    Product GetProductById(int id);\n}\n\npublic class ProductService\n{\n    private readonly IDataAccess _dataAccess;\n\n    public ProductService(IDataAccess dataAccess)\n    {\n        _dataAccess = dataAccess;\n    }\n\n    public Product GetProduct(int id)\n    {\n        return _dataAccess.GetProductById(id);\n    }\n}\n\npublic class Product\n{\n    public int Id { get; set; }\n    public string Name { get; set; }\n}\n<\/code><\/pre>\n<p>Bu ProductService s\u0131n\u0131f\u0131n\u0131 test etmek i\u00e7in,  IDataAccess aray\u00fcz\u00fcn\u00fcn sahte bir (mock) implementasyonuna ihtiyac\u0131m\u0131z vard\u0131r.  \u0130\u015fte Castle Dynamic Proxy ile bunu nas\u0131l yapaca\u011f\u0131m\u0131z:<\/p>\n<pre><code class=\"language-csharp\">\nusing Castle.DynamicProxy;\n\n\/\/ ... di\u011fer kodlar ...\n\n[Test]\npublic void GetProduct_ReturnsCorrectProduct()\n{\n    var mockDataAccess = new Mock<IDataAccess>();\n    mockDataAccess.Setup(x => x.GetProductById(1)).Returns(new Product { Id = 1, Name = \"\u00dcr\u00fcn 1\" });\n\n    var proxyGenerator = new ProxyGenerator();\n    var productService = proxyGenerator.CreateInterfaceProxyWithTarget<IDataAccess>(mockDataAccess.Object);\n\n    var productService = new ProductService(productService);\n    var product = productService.GetProduct(1);\n\n    Assert.AreEqual(1, product.Id);\n    Assert.AreEqual(\"\u00dcr\u00fcn 1\", product.Name);\n}\n<\/code><\/pre>\n<p>Bu \u00f6rnekte,  Castle.Core k\u00fct\u00fcphanesini kullanarak bir proxy nesnesi olu\u015fturduk.  Sonras\u0131nda, bu proxy&#8217;i kullanarak ProductService s\u0131n\u0131f\u0131n\u0131 test ettik.  Bu sayede,  ger\u00e7ek veritaban\u0131na eri\u015fmeden,  GetProductById metodunun davran\u0131\u015f\u0131n\u0131 kontrol edebildik.  Bu durum \u00f6zellikle karma\u015f\u0131k ve yava\u015f i\u015flemler i\u00e7in \u00e7ok b\u00fcy\u00fck bir avantaj sa\u011flar.  Ayr\u0131ca,  testlerin daha izole ve g\u00fcvenilir olmas\u0131n\u0131 sa\u011flar.<\/p>\n<h2>Sonu\u00e7<\/h2>\n<p>Castle Dynamic Proxy, .NET geli\u015ftiricileri i\u00e7in birim testlerini kolayla\u015ft\u0131rmak ve geli\u015ftirmek ad\u0131na harika bir ara\u00e7t\u0131r.  Bu makalede, temel kullan\u0131m\u0131n\u0131 g\u00f6sterdik.  Ancak, Castle Dynamic Proxy&#8217;nin daha bir\u00e7ok geli\u015fmi\u015f \u00f6zelli\u011fi mevcuttur.  Daha fazla bilgi i\u00e7in,  resmi d\u00f6k\u00fcmanlara ve \u00f6rnek uygulamalara g\u00f6z atabilirsiniz.  Umar\u0131m bu makale size yard\u0131mc\u0131 olmu\u015ftur.  Daha fazla .NET geli\u015ftirme ipucu ve teknikleri i\u00e7in <a href=\"https:\/\/fatihsoysal.com\">fatihsoysal.com<\/a> adresini ziyaret edebilirsiniz.<\/p>\n<p><b>Not:<\/b> Bu makaledeki \u00f6rnekler,  anlay\u0131\u015f\u0131n\u0131z\u0131 kolayla\u015ft\u0131rmak i\u00e7in basitle\u015ftirilmi\u015ftir.  Ger\u00e7ek d\u00fcnya senaryolar\u0131nda,  daha karma\u015f\u0131k senaryolarla kar\u015f\u0131la\u015fabilirsiniz.  Ancak,  Castle Dynamic Proxy&#8217;nin esnekli\u011fi ve g\u00fcc\u00fc,  bu senaryolar\u0131 da kolayca ele alman\u0131z\u0131 sa\u011flayacakt\u0131r.<\/p>\n<p>#Etiketler: Castle Dynamic Proxy, .NET, Birim Test, Unit Test, Mocking, Dependency Injection, Fatih Soysal, Proxy Nesneleri, Test S\u00fcr\u00fcm\u00fc, Yaz\u0131l\u0131m Geli\u015ftirme,  .NET Core,  .NET Framework<\/p>\n<p><\/body><br \/>\n<\/html><\/p>\n","protected":false},"excerpt":{"rendered":".NET Unit Testlerinde Castle Dynamic Proxy Kullan\u0131m\u0131 Merhaba! Bu makalede, .NET ekosisteminde birim testlerini geli\u015ftirmek i\u00e7in olduk\u00e7a g\u00fc\u00e7l\u00fc&hellip;","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"csco_page_header_type":"","csco_page_load_nextpost":"","csco_page_subscribe_form":"","csco_page_contact_form":"","footnotes":""},"categories":[1],"tags":[],"class_list":{"0":"post-21513","1":"post","2":"type-post","3":"status-publish","4":"format-standard","6":"category-genel","7":"cs-entry","8":"cs-video-wrap"},"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v20.5 (Yoast SEO v25.3.1) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>.NET Unit Testlerinde Castle Dynamic Proxy Kullan\u0131m\u0131<\/title>\n<meta name=\"description\" content=\"Merhaba! Bu makalede, .NET ekosisteminde birim testlerini geli\u015ftirmek i\u00e7in olduk\u00e7a g\u00fc\u00e7l\u00fc bir ara\u00e7 olan Castle Dynamic Proxy&#039;nin nas\u0131l kullan\u0131laca\u011f\u0131n\u0131 detayl\u0131 olarak ele alaca\u011f\u0131z. \u00d6zellikle karma\u015f\u0131k ba\u011f\u0131ml\u0131l\u0131klar\u0131 olan s\u0131n\u0131flar\u0131 test ederken, bu k\u00fct\u00fcphane size b\u00fcy\u00fck kolayl\u0131k sa\u011flayacakt\u0131r. \u00d6ncelikle Castle Dynamic Proxy&#039;nin ne oldu\u011funu ve neden kullanmam\u0131z gerekti\u011fini a\u00e7\u0131klayarak ba\u015flayal\u0131m.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/fatihsoysal.com\/blog\/net-unit-testlerinde-castle-dynamic-proxy-kullanimi\/\" \/>\n<meta property=\"og:locale\" content=\"tr_TR\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\".NET Unit Testlerinde Castle Dynamic Proxy Kullan\u0131m\u0131\" \/>\n<meta property=\"og:description\" content=\"Merhaba! Bu makalede, .NET ekosisteminde birim testlerini geli\u015ftirmek i\u00e7in olduk\u00e7a g\u00fc\u00e7l\u00fc bir ara\u00e7 olan Castle Dynamic Proxy&#039;nin nas\u0131l kullan\u0131laca\u011f\u0131n\u0131 detayl\u0131 olarak ele alaca\u011f\u0131z. \u00d6zellikle karma\u015f\u0131k ba\u011f\u0131ml\u0131l\u0131klar\u0131 olan s\u0131n\u0131flar\u0131 test ederken, bu k\u00fct\u00fcphane size b\u00fcy\u00fck kolayl\u0131k sa\u011flayacakt\u0131r. \u00d6ncelikle Castle Dynamic Proxy&#039;nin ne oldu\u011funu ve neden kullanmam\u0131z gerekti\u011fini a\u00e7\u0131klayarak ba\u015flayal\u0131m.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/fatihsoysal.com\/blog\/net-unit-testlerinde-castle-dynamic-proxy-kullanimi\/\" \/>\n<meta property=\"og:site_name\" content=\"Kodlar\u0131n Gizemli D\u00fcnyas\u0131\" \/>\n<meta property=\"article:published_time\" content=\"2025-05-19T08:30:14+00:00\" \/>\n<meta name=\"author\" content=\"Fatih Soysal\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Yazan:\" \/>\n\t<meta name=\"twitter:data1\" content=\"Fatih Soysal\" \/>\n\t<meta name=\"twitter:label2\" content=\"Tahmini okuma s\u00fcresi\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 dakika\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/fatihsoysal.com\/blog\/net-unit-testlerinde-castle-dynamic-proxy-kullanimi\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/fatihsoysal.com\/blog\/net-unit-testlerinde-castle-dynamic-proxy-kullanimi\/\"},\"author\":{\"name\":\"Fatih Soysal\",\"@id\":\"https:\/\/fatihsoysal.com\/blog\/#\/schema\/person\/002a254750921dcfd568a99e48240dd1\"},\"headline\":\".NET Unit Testlerinde Castle Dynamic Proxy Kullan\u0131m\u0131\",\"datePublished\":\"2025-05-19T08:30:14+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/fatihsoysal.com\/blog\/net-unit-testlerinde-castle-dynamic-proxy-kullanimi\/\"},\"wordCount\":530,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/fatihsoysal.com\/blog\/#\/schema\/person\/002a254750921dcfd568a99e48240dd1\"},\"inLanguage\":\"tr\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/fatihsoysal.com\/blog\/net-unit-testlerinde-castle-dynamic-proxy-kullanimi\/#respond\"]}],\"copyrightYear\":\"2025\",\"copyrightHolder\":{\"@id\":\"https:\/\/fatihsoysal.com\/blog\/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/fatihsoysal.com\/blog\/net-unit-testlerinde-castle-dynamic-proxy-kullanimi\/\",\"url\":\"https:\/\/fatihsoysal.com\/blog\/net-unit-testlerinde-castle-dynamic-proxy-kullanimi\/\",\"name\":\".NET Unit Testlerinde Castle Dynamic Proxy Kullan\u0131m\u0131\",\"isPartOf\":{\"@id\":\"https:\/\/fatihsoysal.com\/blog\/#website\"},\"datePublished\":\"2025-05-19T08:30:14+00:00\",\"description\":\"Merhaba! Bu makalede, .NET ekosisteminde birim testlerini geli\u015ftirmek i\u00e7in olduk\u00e7a g\u00fc\u00e7l\u00fc bir ara\u00e7 olan Castle Dynamic Proxy'nin nas\u0131l kullan\u0131laca\u011f\u0131n\u0131 detayl\u0131 olarak ele alaca\u011f\u0131z. \u00d6zellikle karma\u015f\u0131k ba\u011f\u0131ml\u0131l\u0131klar\u0131 olan s\u0131n\u0131flar\u0131 test ederken, bu k\u00fct\u00fcphane size b\u00fcy\u00fck kolayl\u0131k sa\u011flayacakt\u0131r. \u00d6ncelikle Castle Dynamic Proxy'nin ne oldu\u011funu ve neden kullanmam\u0131z gerekti\u011fini a\u00e7\u0131klayarak ba\u015flayal\u0131m.\",\"breadcrumb\":{\"@id\":\"https:\/\/fatihsoysal.com\/blog\/net-unit-testlerinde-castle-dynamic-proxy-kullanimi\/#breadcrumb\"},\"inLanguage\":\"tr\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/fatihsoysal.com\/blog\/net-unit-testlerinde-castle-dynamic-proxy-kullanimi\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/fatihsoysal.com\/blog\/net-unit-testlerinde-castle-dynamic-proxy-kullanimi\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Anasayfa\",\"item\":\"https:\/\/fatihsoysal.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\".NET Unit Testlerinde Castle Dynamic Proxy Kullan\u0131m\u0131\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/fatihsoysal.com\/blog\/#website\",\"url\":\"https:\/\/fatihsoysal.com\/blog\/\",\"name\":\"Fatihsoysal.com\",\"description\":\"Blog - Yaz\u0131l\u0131m D\u00fcnyas\u0131 Tecr\u00fcbelerim\",\"publisher\":{\"@id\":\"https:\/\/fatihsoysal.com\/blog\/#\/schema\/person\/002a254750921dcfd568a99e48240dd1\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/fatihsoysal.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"tr\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\/\/fatihsoysal.com\/blog\/#\/schema\/person\/002a254750921dcfd568a99e48240dd1\",\"name\":\"Fatih Soysal\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"tr\",\"@id\":\"https:\/\/fatihsoysal.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/fatihsoysal.com\/blog\/wp-content\/uploads\/2024\/04\/cropped-replicate-prediction-3kgg1hgjn5rgp0cf0p5tr0jw7w-1.png\",\"contentUrl\":\"https:\/\/fatihsoysal.com\/blog\/wp-content\/uploads\/2024\/04\/cropped-replicate-prediction-3kgg1hgjn5rgp0cf0p5tr0jw7w-1.png\",\"width\":512,\"height\":512,\"caption\":\"Fatih Soysal\"},\"logo\":{\"@id\":\"https:\/\/fatihsoysal.com\/blog\/#\/schema\/person\/image\/\"},\"description\":\"Kullan\u0131m ve kodlama m\u00fckemmeliyetini odak alan uygulamalar olu\u015fturma deneyimine sahip, profesyonel olarak 15+ y\u0131l \u00fczeri deneyime sahip bir yaz\u0131l\u0131m m\u00fchendisi.\",\"url\":\"https:\/\/fatihsoysal.com\/blog\/author\/fatihsoysal\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":".NET Unit Testlerinde Castle Dynamic Proxy Kullan\u0131m\u0131","description":"Merhaba! Bu makalede, .NET ekosisteminde birim testlerini geli\u015ftirmek i\u00e7in olduk\u00e7a g\u00fc\u00e7l\u00fc bir ara\u00e7 olan Castle Dynamic Proxy'nin nas\u0131l kullan\u0131laca\u011f\u0131n\u0131 detayl\u0131 olarak ele alaca\u011f\u0131z. \u00d6zellikle karma\u015f\u0131k ba\u011f\u0131ml\u0131l\u0131klar\u0131 olan s\u0131n\u0131flar\u0131 test ederken, bu k\u00fct\u00fcphane size b\u00fcy\u00fck kolayl\u0131k sa\u011flayacakt\u0131r. \u00d6ncelikle Castle Dynamic Proxy'nin ne oldu\u011funu ve neden kullanmam\u0131z gerekti\u011fini a\u00e7\u0131klayarak ba\u015flayal\u0131m.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/fatihsoysal.com\/blog\/net-unit-testlerinde-castle-dynamic-proxy-kullanimi\/","og_locale":"tr_TR","og_type":"article","og_title":".NET Unit Testlerinde Castle Dynamic Proxy Kullan\u0131m\u0131","og_description":"Merhaba! Bu makalede, .NET ekosisteminde birim testlerini geli\u015ftirmek i\u00e7in olduk\u00e7a g\u00fc\u00e7l\u00fc bir ara\u00e7 olan Castle Dynamic Proxy'nin nas\u0131l kullan\u0131laca\u011f\u0131n\u0131 detayl\u0131 olarak ele alaca\u011f\u0131z. \u00d6zellikle karma\u015f\u0131k ba\u011f\u0131ml\u0131l\u0131klar\u0131 olan s\u0131n\u0131flar\u0131 test ederken, bu k\u00fct\u00fcphane size b\u00fcy\u00fck kolayl\u0131k sa\u011flayacakt\u0131r. \u00d6ncelikle Castle Dynamic Proxy'nin ne oldu\u011funu ve neden kullanmam\u0131z gerekti\u011fini a\u00e7\u0131klayarak ba\u015flayal\u0131m.","og_url":"https:\/\/fatihsoysal.com\/blog\/net-unit-testlerinde-castle-dynamic-proxy-kullanimi\/","og_site_name":"Kodlar\u0131n Gizemli D\u00fcnyas\u0131","article_published_time":"2025-05-19T08:30:14+00:00","author":"Fatih Soysal","twitter_card":"summary_large_image","twitter_misc":{"Yazan:":"Fatih Soysal","Tahmini okuma s\u00fcresi":"3 dakika"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/fatihsoysal.com\/blog\/net-unit-testlerinde-castle-dynamic-proxy-kullanimi\/#article","isPartOf":{"@id":"https:\/\/fatihsoysal.com\/blog\/net-unit-testlerinde-castle-dynamic-proxy-kullanimi\/"},"author":{"name":"Fatih Soysal","@id":"https:\/\/fatihsoysal.com\/blog\/#\/schema\/person\/002a254750921dcfd568a99e48240dd1"},"headline":".NET Unit Testlerinde Castle Dynamic Proxy Kullan\u0131m\u0131","datePublished":"2025-05-19T08:30:14+00:00","mainEntityOfPage":{"@id":"https:\/\/fatihsoysal.com\/blog\/net-unit-testlerinde-castle-dynamic-proxy-kullanimi\/"},"wordCount":530,"commentCount":0,"publisher":{"@id":"https:\/\/fatihsoysal.com\/blog\/#\/schema\/person\/002a254750921dcfd568a99e48240dd1"},"inLanguage":"tr","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/fatihsoysal.com\/blog\/net-unit-testlerinde-castle-dynamic-proxy-kullanimi\/#respond"]}],"copyrightYear":"2025","copyrightHolder":{"@id":"https:\/\/fatihsoysal.com\/blog\/#organization"}},{"@type":"WebPage","@id":"https:\/\/fatihsoysal.com\/blog\/net-unit-testlerinde-castle-dynamic-proxy-kullanimi\/","url":"https:\/\/fatihsoysal.com\/blog\/net-unit-testlerinde-castle-dynamic-proxy-kullanimi\/","name":".NET Unit Testlerinde Castle Dynamic Proxy Kullan\u0131m\u0131","isPartOf":{"@id":"https:\/\/fatihsoysal.com\/blog\/#website"},"datePublished":"2025-05-19T08:30:14+00:00","description":"Merhaba! Bu makalede, .NET ekosisteminde birim testlerini geli\u015ftirmek i\u00e7in olduk\u00e7a g\u00fc\u00e7l\u00fc bir ara\u00e7 olan Castle Dynamic Proxy'nin nas\u0131l kullan\u0131laca\u011f\u0131n\u0131 detayl\u0131 olarak ele alaca\u011f\u0131z. \u00d6zellikle karma\u015f\u0131k ba\u011f\u0131ml\u0131l\u0131klar\u0131 olan s\u0131n\u0131flar\u0131 test ederken, bu k\u00fct\u00fcphane size b\u00fcy\u00fck kolayl\u0131k sa\u011flayacakt\u0131r. \u00d6ncelikle Castle Dynamic Proxy'nin ne oldu\u011funu ve neden kullanmam\u0131z gerekti\u011fini a\u00e7\u0131klayarak ba\u015flayal\u0131m.","breadcrumb":{"@id":"https:\/\/fatihsoysal.com\/blog\/net-unit-testlerinde-castle-dynamic-proxy-kullanimi\/#breadcrumb"},"inLanguage":"tr","potentialAction":[{"@type":"ReadAction","target":["https:\/\/fatihsoysal.com\/blog\/net-unit-testlerinde-castle-dynamic-proxy-kullanimi\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/fatihsoysal.com\/blog\/net-unit-testlerinde-castle-dynamic-proxy-kullanimi\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Anasayfa","item":"https:\/\/fatihsoysal.com\/blog\/"},{"@type":"ListItem","position":2,"name":".NET Unit Testlerinde Castle Dynamic Proxy Kullan\u0131m\u0131"}]},{"@type":"WebSite","@id":"https:\/\/fatihsoysal.com\/blog\/#website","url":"https:\/\/fatihsoysal.com\/blog\/","name":"Fatihsoysal.com","description":"Blog - Yaz\u0131l\u0131m D\u00fcnyas\u0131 Tecr\u00fcbelerim","publisher":{"@id":"https:\/\/fatihsoysal.com\/blog\/#\/schema\/person\/002a254750921dcfd568a99e48240dd1"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/fatihsoysal.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"tr"},{"@type":["Person","Organization"],"@id":"https:\/\/fatihsoysal.com\/blog\/#\/schema\/person\/002a254750921dcfd568a99e48240dd1","name":"Fatih Soysal","image":{"@type":"ImageObject","inLanguage":"tr","@id":"https:\/\/fatihsoysal.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/fatihsoysal.com\/blog\/wp-content\/uploads\/2024\/04\/cropped-replicate-prediction-3kgg1hgjn5rgp0cf0p5tr0jw7w-1.png","contentUrl":"https:\/\/fatihsoysal.com\/blog\/wp-content\/uploads\/2024\/04\/cropped-replicate-prediction-3kgg1hgjn5rgp0cf0p5tr0jw7w-1.png","width":512,"height":512,"caption":"Fatih Soysal"},"logo":{"@id":"https:\/\/fatihsoysal.com\/blog\/#\/schema\/person\/image\/"},"description":"Kullan\u0131m ve kodlama m\u00fckemmeliyetini odak alan uygulamalar olu\u015fturma deneyimine sahip, profesyonel olarak 15+ y\u0131l \u00fczeri deneyime sahip bir yaz\u0131l\u0131m m\u00fchendisi.","url":"https:\/\/fatihsoysal.com\/blog\/author\/fatihsoysal\/"}]}},"yoast_meta":{"yoast_wpseo_title":"","yoast_wpseo_metadesc":"","yoast_wpseo_canonical":""},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/fatihsoysal.com\/blog\/wp-json\/wp\/v2\/posts\/21513","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/fatihsoysal.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/fatihsoysal.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/fatihsoysal.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/fatihsoysal.com\/blog\/wp-json\/wp\/v2\/comments?post=21513"}],"version-history":[{"count":0,"href":"https:\/\/fatihsoysal.com\/blog\/wp-json\/wp\/v2\/posts\/21513\/revisions"}],"wp:attachment":[{"href":"https:\/\/fatihsoysal.com\/blog\/wp-json\/wp\/v2\/media?parent=21513"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fatihsoysal.com\/blog\/wp-json\/wp\/v2\/categories?post=21513"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fatihsoysal.com\/blog\/wp-json\/wp\/v2\/tags?post=21513"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}