/// <summary> /// update current instance /// </summary> /// <param name="newState">new state</param> public void Update(SourceCodeRepository newState) { if (newState == null) { return; } RepoVstsId = newState.RepoVstsId; State = newState.State; }
public VstsBuildDefinition(SourceCodeRepository sourceCode, string tenantCode) { SourceCode = sourceCode; TenantCode = tenantCode; State = EntityStateEnum.NotCreated; }