public void Read_NotThrowsException_StateIsValid() { var workTypeKey = new WorkTypeTableEntity { WorkTypeId = Guid.Parse("00000000-4001-0000-0000-000000000000"), }; var workTypeRepository = new WorkTypeRepository(TestEnvironment.DBSettings); var workType = workTypeRepository.Read(workTypeKey); Assert.IsNotNull(workType); }
public void Update_NotThrowsException_StateIsValid() { var workTypeKey = new WorkTypeTableEntity { WorkTypeId = Guid.Parse("00000000-4001-0000-0000-000000000000"), }; var workTypeRepository = new WorkTypeRepository(TestEnvironment.DBSettings); var workType = workTypeRepository.Read(workTypeKey); workType.UpdateTime = DateUtil.Now; Assert.IsTrue(workTypeRepository.Update(workType)); }