title: Failed Unit Test
body: <p>I have a service for adding city in DB. It works good, now I need test it. I have never worked with tests before. I'll be grateful for your recommendations. I would test case - If it isn't null - test passed(I mean if User insert anything - test is passed, if he doesn't insert data - test failed). I need just check townName null or no. It is my TestClass</p>
  <pre><code>   [TestClass]
      public partial class TownRepositoryTests
      {
          [TestMethod]
          public async Task InsertTownName_ReturnTownName()
          {
              var builder = new RepositoryBuilder&lt;TownRepository&gt;().SetupManager();
  
              using (builder.CreateIsolationScope())
              {
                 var expectedTown = await TestBuilder.SetupTownNameAsync(builder);
  
                  var repository = builder.Build();
  
                  var townName = expectedTown.Name;
  
                  var result = await repository.InsertTown(townName);
  
                  Assert.IsNotNull(result);
              }
          }
      }
  </code></pre>
  <p>SetupTownNameAsync method(here I add data). I think it works good, because when I used debug test, I checked that this method return (id=1, name= &quot;TestTown&quot;)</p>
  <pre><code>       public static class TestBuilder
         {
             public static async Task&lt;Town&gt; SetupTownNameAsync(RepositoryBuilder&lt;TownRepository&gt; builder)
             {
                 var town = await builder.CreateTownAsync(name: &quot;TestTown&quot;);
  
                 var setupResult = new Town
                 {
                     Id = town.Id,
                     Name = town.Name 
                 };
  
                 return setupResult;
             }
         }
  </code></pre>
  <p>And here my InsertTown method</p>
  <pre><code>        public async Task&lt;int&gt; InsertTown(string townName)
          {
              var parameters = new { townName };
  
              return await Connection.QueryFirstOrDefaultAsync&lt;int&gt;(Adhoc[&quot;AddTown&quot;], parameters, Transaction);
          }
  </code></pre>
  <p>When I checked problem with debug test - in this line returns &quot;TestTown&quot;, but when I check it in Assert - my test is failed</p>
  <pre><code>                var result = await repository.InsertTown(townName);
  
                  Assert.IsNotNull(result);
  </code></pre>