public void Create_NotThrowsException_StateIsValid() { var now = DateUtil.Now; var workType = new WorkTypeTableEntity { WorkTypeId = Guid.NewGuid(), WorkTypeCode = new string('X', 20), WorkTypeTree = new string('0', 8), Name = new string('X', 256), Description = new string('X', 1024), SortNo = int.MaxValue, Status = WorkTypeStatus.NORMAL.ToString(), CreateTime = DateTimeOffset.MaxValue, UpdateTime = DateTimeOffset.MaxValue, }; var workTypeRepository = new WorkTypeRepository(TestEnvironment.DBSettings); workTypeRepository.Create(workType); }