예제 #1
0
 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 });
     }
 }
예제 #2
0
 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 });
     }
 }
예제 #3
0
 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 });
     }
 }
예제 #4
0
파일: RangeTest.cs 프로젝트: koav/Rhetos
 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 });
     }
 }