<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>Dependency-Injection - Tag - My Notes</title><link>https://blog.emecas.net/tags/dependency-injection/</link><description>Dependency-Injection - Tag - My Notes</description><generator>Hugo -- gohugo.io</generator><language>en</language><lastBuildDate>Wed, 27 May 2020 17:57:12 -0400</lastBuildDate><atom:link href="https://blog.emecas.net/tags/dependency-injection/" rel="self" type="application/rss+xml"/><item><title>JSR-377 Desktop\|Embedded Application API</title><link>https://blog.emecas.net/posts/2020-05-27-jsr-377-desktop-embedded-application-api/</link><pubDate>Wed, 27 May 2020 17:57:12 -0400</pubDate><author>emecas</author><guid>https://blog.emecas.net/posts/2020-05-27-jsr-377-desktop-embedded-application-api/</guid><description><![CDATA[<p>JSR-377 Desktop|Embedded Application API<br>
<a href="https://jcp.org/en/jsr/detail?id=377" target="_blank" rel="noopener noreffer ">https://jcp.org/en/jsr/detail?id=377</a><br>
<a href="http://jsr377.github.io/site/" target="_blank" rel="noopener noreffer ">http://jsr377.github.io/site/</a></p>
<p>The goal of this specification is to define an API for common behavior shared by many desktop applications. Most applications require the following features</p>
<p>dependency injection via JSR330.<br>
common application structure.<br>
application life-cycle.<br>
localized resources.<br>
resource injection.<br>
localized configuration.<br>
decouple state from UI (binding).<br>
persistence session state (preferences).<br>
action management.<br>
component life-cycle.<br>
light-weight event bus.<br>
honor threading concerns (specific to UI toolkit).<br>
application extensibility via plugins (implies modularity).</p>]]></description></item><item><title>KODEIN DI</title><link>https://blog.emecas.net/posts/2019-04-27-kodein-di/</link><pubDate>Sat, 27 Apr 2019 18:43:49 -0400</pubDate><author>emecas</author><guid>https://blog.emecas.net/posts/2019-04-27-kodein-di/</guid><description><![CDATA[<p>KODEIN DI: KOtlin DEpendency INjection: 6.2.0<br>
<a href="https://kodein.org/Kodein-DI/" target="_blank" rel="noopener noreffer ">https://kodein.org/Kodein-DI/</a><br>
Kodein (for KOtlin DEpendency INjection) is a DI framework.<br>
It allows you to bind your business unit interfaces with their implementation and thus having each business unit being independent.<br>
<a href="https://github.com/Kodein-Framework/Kodein-DI" target="_blank" rel="noopener noreffer ">https://github.com/Kodein-Framework/Kodein-DI</a></p>
<hr>
<p><em>Source: commit <a href="https://github.com/emecas/My-Notes/commit/70c5c0f327dbe921d76916f7a77c75320de0b412" target="_blank" rel="noopener noreffer "><code>70c5c0f</code></a> in My-Notes.</em></p>]]></description></item><item><title>Koin</title><link>https://blog.emecas.net/posts/2019-04-27-koin/</link><pubDate>Sat, 27 Apr 2019 18:36:53 -0400</pubDate><author>emecas</author><guid>https://blog.emecas.net/posts/2019-04-27-koin/</guid><description><![CDATA[<p>Koin<br>
<a href="https://insert-koin.io/" target="_blank" rel="noopener noreffer ">https://insert-koin.io/</a><br>
A pragmatic lightweight dependency injection framework for Kotlin developers.<br>
Written in pure Kotlin using functional resolution only: no proxy, no code generation, no reflection<br>
<a href="https://github.com/InsertKoinIO/koin" target="_blank" rel="noopener noreffer ">https://github.com/InsertKoinIO/koin</a></p>
<hr>
<p><em>Source: commit <a href="https://github.com/emecas/My-Notes/commit/a6c57aee03df4b919880e6eecc9a182b1abf943d" target="_blank" rel="noopener noreffer "><code>a6c57ae</code></a> in My-Notes.</em></p>]]></description></item><item><title>Creating Mock Objects for C# Unit Tests, using Moq</title><link>https://blog.emecas.net/posts/2019-02-23-creating-mock-objects-for-c-unit-tests-using-moq/</link><pubDate>Sat, 23 Feb 2019 12:28:29 -0500</pubDate><author>emecas</author><guid>https://blog.emecas.net/posts/2019-02-23-creating-mock-objects-for-c-unit-tests-using-moq/</guid><description><![CDATA[<p>Creating Mock Objects for C# Unit Tests, using Moq<br>
<a href="https://scottlilly.com/creating-mock-objects-for-c-unit-tests-using-moq/" target="_blank" rel="noopener noreffer ">https://scottlilly.com/creating-mock-objects-for-c-unit-tests-using-moq/</a><br>
In my demonstration of the Dependency Injection design pattern, I manually created a mock object. This let me perform unit tests without needing to access a database.<br>
Here is how you can use the Moq library, to eliminate writing the code for manual mock classes.<br>
If you aren’t familiar with dependency injection, please read this article first</p>
<hr>
<p><em>Source: commit <a href="https://github.com/emecas/My-Notes/commit/d0b85b772384455b2bc1f660181a59fa56e782f9" target="_blank" rel="noopener noreffer "><code>d0b85b7</code></a> in My-Notes.</em></p>]]></description></item></channel></rss>