public async void DeploymentId_Update_Valid_Reference()
        {
            Mock <IDeploymentRelatedMachineRepository> deploymentRelatedMachineRepository = new Mock <IDeploymentRelatedMachineRepository>();

            deploymentRelatedMachineRepository.Setup(x => x.GetDeployment(It.IsAny <string>())).Returns(Task.FromResult <Deployment>(new Deployment()));

            var validator = new ApiDeploymentRelatedMachineRequestModelValidator(deploymentRelatedMachineRepository.Object);
            await validator.ValidateUpdateAsync(default(int), new ApiDeploymentRelatedMachineRequestModel());

            validator.ShouldNotHaveValidationErrorFor(x => x.DeploymentId, "A");
        }
        public async void DeploymentId_Update_length()
        {
            Mock <IDeploymentRelatedMachineRepository> deploymentRelatedMachineRepository = new Mock <IDeploymentRelatedMachineRepository>();

            deploymentRelatedMachineRepository.Setup(x => x.Get(It.IsAny <int>())).Returns(Task.FromResult(new DeploymentRelatedMachine()));

            var validator = new ApiDeploymentRelatedMachineRequestModelValidator(deploymentRelatedMachineRepository.Object);
            await validator.ValidateUpdateAsync(default(int), new ApiDeploymentRelatedMachineRequestModel());

            validator.ShouldHaveValidationErrorFor(x => x.DeploymentId, new string('A', 51));
        }