public void ExceptionThrows_When_TypeModel_is_not_valid_Then_throws_ValidatorException() { var type1 = new TypeDto() { FleightLength = 900, MaxHeight = 900, MaxMass = 72, Places = 300, Speed = 400 }; var type2 = new TypeDto() { FleightLength = 900, MaxHeight = 900, Model = "Model", MaxMass = 72, Places = 0, Speed = 400 }; var type3 = new TypeDto() { ID = 300, FleightLength = 900, MaxHeight = 900, Model = "Model", MaxMass = 72, Places = 300, Speed = 400 }; Assert.Throws <FluentValidation.ValidationException>(() => service.Create(type1)); Assert.Throws <FluentValidation.ValidationException>(() => service.Create(type2)); Assert.Throws <FluentValidation.ValidationException>(() => service.Create(type3)); }