<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>shiba-yan</author_name>
  <author_url>https://blog.hatena.ne.jp/shiba-yan/</author_url>
  <blog_title>しばやん雑記</blog_title>
  <blog_url>https://blog.shibayan.jp/</blog_url>
  <categories>
    <anon>ASP.NET</anon>
  </categories>
  <description>ASP.NET MVC 3 開発入門 - インデックス前回作成した MvcVideoContext を直接コントローラから利用しても問題は無いのですが、コントローラに直接 LINQ でクエリを書いてしまうと依存関係が強くなりすぎて単体テストが行いにくくなってしまいます。MVC アーキテクチャの利点としてテストが行いやすいという点がありますので、今回はリポジトリパターンを適用してビジネスロジックを別のクラスとして分離させ、コントローラとモデルの間に挟むことでテストが容易に行える形で実装してみましょう。まずは Video クラスのリポジトリを作成するのですが、リポジトリパターンでは先にデータアクセ…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog.shibayan.jp%2Fentry%2F20110212%2F1297512829&quot; title=&quot;ASP.NET MVC 3 開発入門 (4) - リポジトリパターンを適用する - しばやん雑記&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url>http://cdn-ak.f.st-hatena.com/images/fotolife/s/shiba-yan/20110212/20110212194107.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2011-02-12 21:13:49</published>
  <title>ASP.NET MVC 3 開発入門 (4) - リポジトリパターンを適用する</title>
  <type>rich</type>
  <url>https://blog.shibayan.jp/entry/20110212/1297512829</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
