Ejemplo n.º 1
0
        public void GetsDeployment()
        {
            var result = _getSample.GetDeployment(_fixture.ProjectId, _fixture.TestDeploymentId);

            Assert.Equal(_fixture.ProjectId, result.GameServerDeploymentName.ProjectId);
            Assert.Equal(_fixture.RegionId, result.GameServerDeploymentName.LocationId);
            Assert.Equal(_fixture.TestDeploymentId, result.GameServerDeploymentName.DeploymentId);
        }
        public async Task UpdatesDeploymentAsync()
        {
            await _updateSample.UpdateDeploymentAsync(_fixture.ProjectId, _fixture.TestDeploymentId);

            var    deployment = _getSample.GetDeployment(_fixture.ProjectId, _fixture.TestDeploymentId);
            string value1;
            string value2;

            Assert.True(deployment.Labels.TryGetValue(_fixture.Label1Key, out value1));
            Assert.True(deployment.Labels.TryGetValue(_fixture.Label2Key, out value2));
            Assert.Equal(_fixture.Label1Value, value1);
            Assert.Equal(_fixture.Label2Value, value2);
        }