public async void DeploymentId_Create_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.ValidateCreateAsync(new ApiDeploymentRelatedMachineRequestModel());

            validator.ShouldNotHaveValidationErrorFor(x => x.DeploymentId, "A");
        }
        public async void DeploymentId_Create_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.ValidateCreateAsync(new ApiDeploymentRelatedMachineRequestModel());

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