Example #1
0
 public void NormallyInsertDecimal()
 {
     using (var container = new RhetosTestContainer())
     {
         var repository = container.Resolve<Common.DomRepository>();
         var entity = new SimpleDecimal { Value = (decimal)2.30 };
         repository.TestMaxValue.SimpleDecimal.Insert(new[] { entity });
     }
 }
Example #2
0
 public void ShouldThowUserExceptionOnInsertDecimal()
 {
     using (var container = new RhetosTestContainer())
     {
         var repository = container.Resolve<Common.DomRepository>();
         var entity = new SimpleDecimal { Value = (decimal)3.33 };
         repository.TestMaxValue.SimpleDecimal.Insert(new[] { entity });
     }
 }
Example #3
0
 public void NormallyInsertDecimal()
 {
     using (var executionContext = new CommonTestExecutionContext())
     {
         var repository = new Common.DomRepository(executionContext);
         var entity = new SimpleDecimal { Value = (decimal)2.30 };
         repository.TestMaxValue.SimpleDecimal.Insert(new[] { entity });
     }
 }
Example #4
0
 public void NormallyInsertDecimal()
 {
     using (var container = new RhetosTestContainer())
     {
         var repository = container.Resolve<Common.DomRepository>();
         var entity = new SimpleDecimal { Value = (decimal)12.35 };
         repository.TestMinValue.SimpleDecimal.Insert(entity);
     }
 }
Example #5
0
 public void ShouldThowUserExceptionOnInsertDecimal()
 {
     using (var container = new RhetosTestContainer())
     {
         var repository = container.Resolve<Common.DomRepository>();
         var entity = new SimpleDecimal { Value = (decimal)2.33 };
         repository.TestMinValue.SimpleDecimal.Insert(entity);
     }
 }
 public void NormallyInsertDecimal()
 {
     using (var scope = TestScope.Create())
     {
         var repository = scope.Resolve <Common.DomRepository>();
         var entity     = new SimpleDecimal {
             Value = (decimal)12.35
         };
         repository.TestMinValue.SimpleDecimal.Insert(entity);
     }
 }
 public void ShouldThowUserExceptionOnInsertDecimal()
 {
     using (var scope = TestScope.Create())
     {
         var repository = scope.Resolve <Common.DomRepository>();
         var entity     = new SimpleDecimal {
             Value = (decimal)2.33
         };
         repository.TestMinValue.SimpleDecimal.Insert(entity);
     }
 }
Example #8
0
 public void ShouldThowUserExceptionOnInsertDecimal()
 {
     using (var executionContext = new CommonTestExecutionContext())
     {
         var repository = new Common.DomRepository(executionContext);
         var entity = new SimpleDecimal { Value = (decimal)3.33 };
         repository.TestMaxValue.SimpleDecimal.Insert(new[] { entity });
     }
 }