Example #1
0
 public void NormallyInsertDateTime()
 {
     using (var container = new RhetosTestContainer())
     {
         var repository = container.Resolve<Common.DomRepository>();
         var entity = new SimpleDateTime { Value = new DateTime(2013, 7, 5, 12, 33, 1) };
         repository.TestMaxValue.SimpleDateTime.Insert(new[] { entity });
     }
 }
Example #2
0
 public void NormallyInsertDateTime()
 {
     using (var executionContext = new CommonTestExecutionContext())
     {
         var repository = new Common.DomRepository(executionContext);
         var entity = new SimpleDateTime { Value = new DateTime(2013, 7, 5, 12, 33, 1) };
         repository.TestMaxValue.SimpleDateTime.Insert(new[] { entity });
     }
 }
Example #3
0
 public void NormallyInsertDateTime()
 {
     using (var container = new RhetosTestContainer())
     {
         var repository = container.Resolve<Common.DomRepository>();
         var entity = new SimpleDateTime { Value = new DateTime(2013, 7, 5, 12, 34, 1) };
         repository.TestMinValue.SimpleDateTime.Insert(entity);
     }
 }
Example #4
0
 public void ShouldThowUserExceptionOnInsertDateTime()
 {
     using (var container = new RhetosTestContainer())
     {
         var repository = container.Resolve<Common.DomRepository>();
         var entity = new SimpleDateTime { Value = new DateTime(2013, 7, 5, 12, 33, 59) };
         repository.TestMinValue.SimpleDateTime.Insert(entity);
     }
 }
 public void NormallyInsertDateTime()
 {
     using (var scope = TestScope.Create())
     {
         var repository = scope.Resolve <Common.DomRepository>();
         var entity     = new SimpleDateTime {
             Value = new DateTime(2013, 7, 5, 12, 34, 1)
         };
         repository.TestMinValue.SimpleDateTime.Insert(entity);
     }
 }
 public void ShouldThowUserExceptionOnInsertDateTime()
 {
     using (var scope = TestScope.Create())
     {
         var repository = scope.Resolve <Common.DomRepository>();
         var entity     = new SimpleDateTime {
             Value = new DateTime(2013, 7, 5, 12, 33, 59)
         };
         repository.TestMinValue.SimpleDateTime.Insert(entity);
     }
 }
Example #7
0
 public void ShouldThowUserExceptionOnInsertDateTime()
 {
     using (var container = new RhetosTestContainer())
     {
         var repository = container.Resolve<Common.DomRepository>();
         var entity = new SimpleDateTime { Value = new DateTime(2013, 7, 5, 12, 34, 59) };
         repository.TestMaxValue.SimpleDateTime.Insert(new[] { entity });
     }
 }
Example #8
0
 public void ShouldThowUserExceptionOnInsertDateTime()
 {
     using (var executionContext = new CommonTestExecutionContext())
     {
         var repository = new Common.DomRepository(executionContext);
         var entity = new SimpleDateTime { Value = new DateTime(2013, 7, 5, 12, 34, 59) };
         repository.TestMaxValue.SimpleDateTime.Insert(new[] { entity });
     }
 }