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 }); } }
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 }); } }
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 }); } }
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); } }
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); } }
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 }); } }