public async void TeamId_Create_Valid_Reference()
        {
            Mock <IMachineRefTeamRepository> machineRefTeamRepository = new Mock <IMachineRefTeamRepository>();

            machineRefTeamRepository.Setup(x => x.GetTeam(It.IsAny <int>())).Returns(Task.FromResult <Team>(new Team()));

            var validator = new ApiMachineRefTeamRequestModelValidator(machineRefTeamRepository.Object);
            await validator.ValidateCreateAsync(new ApiMachineRefTeamRequestModel());

            validator.ShouldNotHaveValidationErrorFor(x => x.TeamId, 1);
        }
        public async void MachineId_Update_Valid_Reference()
        {
            Mock <IMachineRefTeamRepository> machineRefTeamRepository = new Mock <IMachineRefTeamRepository>();

            machineRefTeamRepository.Setup(x => x.GetMachine(It.IsAny <int>())).Returns(Task.FromResult <Machine>(new Machine()));

            var validator = new ApiMachineRefTeamRequestModelValidator(machineRefTeamRepository.Object);
            await validator.ValidateUpdateAsync(default(int), new ApiMachineRefTeamRequestModel());

            validator.ShouldNotHaveValidationErrorFor(x => x.MachineId, 1);
        }