public void Read_NotThrowsException_StateIsValid() { var groupPersonKey = new GroupPersonTableEntity { GroupId = Guid.Parse("00000000-3001-0000-0000-000000000000"), PersonId = Guid.Parse("00000000-1001-0000-0000-000000000000"), }; var groupPersonRepository = new GroupPersonRepository(TestEnvironment.DBSettings); var groupPerson = groupPersonRepository.Read(groupPersonKey); Assert.IsNotNull(groupPerson); }
public void Update_NotThrowsException_StateIsValid() { var groupPersonKey = new GroupPersonTableEntity { GroupId = Guid.Parse("00000000-3002-0000-0000-000000000000"), PersonId = Guid.Parse("00000000-1001-0000-0000-000000000000"), }; var groupPersonRepository = new GroupPersonRepository(TestEnvironment.DBSettings); var groupPerson = groupPersonRepository.Read(groupPersonKey); groupPerson.PositionType = PositionType.GENERAL_MANAGER.ToString(); Assert.IsTrue(groupPersonRepository.Update(groupPerson)); }