g AutoMapTo attribute) and added data annotations to apply <a href="http://www.aspnetboilerplate.com/Pages/Documents/Validating-Data-Transfer-Objects" target="_blank"> validation</a>. We used constants from Task entity to use same max lengths.</p>

<h3 id="ArticleTaskCreateServiceTest">Testing Task Creation Service</h3>

<p>I&#39;m adding some integration tests into TaskAppService_Tests class to test the Create method:</p>

<pre lang="cs">
using Acme.SimpleTaskApp.Tasks;
using Acme.SimpleTaskApp.Tasks.Dtos;