public void ShouldReturnBadRequestAndValidationErrorsWhenModelIsNotValid()
        {
            var model = new ScheduleViewModel();

            validatorMock.Setup(x => x.IsValid(model)).Returns(false);
            var errorsList = new List <string>();

            validatorMock.SetupGet(x => x.ErrorList).Returns(errorsList);

            var result = controller.Add(model, shipId);

            Assert.IsInstanceOf <BadRequestObjectResult>(result);
            var badReqest = result as BadRequestObjectResult;

            Assert.AreEqual(errorsList, badReqest.Value);
        }