<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>asonas</author_name>
  <author_url>https://blog.hatena.ne.jp/asonas/</author_url>
  <blog_title>良いあそなすちゃん</blog_title>
  <blog_url>https://asonas.hatenablog.com/</blog_url>
  <categories>
  </categories>
  <description>Aというモデルを構築するのにはBとCが必要で、Aが主としてBとCは従属する関係があるとする。その場合におけるテストを書いて、ふーやれやれ、と珈琲をすする。 しかしコードを読み進めていくうちに、このA,B,Cのモデルは、ある場合に置いてはB、もしくはCは主となる場合を見つけてしまったときにさっき書いたテストコードは意味があるのかどうかという点でかなり悩んでいる。というか、全てのモデルが対等に扱われていて、呼び出す状態によって主従関係が変わる、というモデリングは見たことがなくあわあわしている。</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fasonas.hatenablog.com%2Fentry%2F2015%2F05%2F19%2F060913&quot; title=&quot;モデルのテストを書いているとき - 良いあそなすちゃん&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></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2015-05-19 06:09:13</published>
  <title>モデルのテストを書いているとき</title>
  <type>rich</type>
  <url>https://asonas.hatenablog.com/entry/2015/05/19/060913</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
