public void ShouldThrowExceptionIfNotSetRequired() { using (var container = new RhetosTestContainer()) { var repository = container.Resolve <Common.DomRepository>(); var entity = new DateRangeWithRequired { ToDate = DateTime.Today }; repository.TestRange.DateRangeWithRequired.Insert(new[] { entity }); } }
public void ShouldThrowExceptionIfNotSetRequired() { using (var scope = TestScope.Create()) { var repository = scope.Resolve <Common.DomRepository>(); var entity = new DateRangeWithRequired { ToDate = DateTime.Today }; repository.TestRange.DateRangeWithRequired.Insert(new[] { entity }); } }
public void ShouldThrowExceptionIfNotSetRequired() { using (var container = new RhetosTestContainer()) { var repository = container.Resolve<Common.DomRepository>(); var entity = new DateRangeWithRequired { ToDate = DateTime.Today }; repository.TestRange.DateRangeWithRequired.Insert(new[] { entity }); } }
public void ShouldThrowExceptionIfNotSetRequired() { using (var executionContext = new CommonTestExecutionContext()) { var repository = new Common.DomRepository(executionContext); var entity = new DateRangeWithRequired { ToDate = DateTime.Today }; repository.TestRange.DateRangeWithRequired.Insert(new[] { entity }); } }