public void GetsCluster() { var result = _getSample.GetCluster(_fixture.ProjectId, _fixture.RegionId, _fixture.TestRealmId, _fixture.TestClusterId); Assert.Equal(_fixture.ProjectId, result.GameServerClusterName.ProjectId); Assert.Equal(_fixture.RegionId, result.GameServerClusterName.LocationId); Assert.Equal(_fixture.TestClusterId, result.GameServerClusterName.ClusterId); }
public async Task UpdatesClusterAsync() { await _updateSample.UpdateClusterAsync(_fixture.ProjectId, _fixture.RegionId, _fixture.TestRealmId, _fixture.TestClusterId); var cluster = _getSample.GetCluster(_fixture.ProjectId, _fixture.RegionId, _fixture.TestRealmId, _fixture.TestClusterId); string value1; string value2; Assert.True(cluster.Labels.TryGetValue(_fixture.Label1Key, out value1)); Assert.True(cluster.Labels.TryGetValue(_fixture.Label2Key, out value2)); Assert.Equal(_fixture.Label1Value, value1); Assert.Equal(_fixture.Label2Value, value2); }