public async void TransactionType_Update_length()
        {
            Mock <ITransactionHistoryRepository> transactionHistoryRepository = new Mock <ITransactionHistoryRepository>();

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

            var validator = new ApiTransactionHistoryRequestModelValidator(transactionHistoryRepository.Object);
            await validator.ValidateUpdateAsync(default(int), new ApiTransactionHistoryRequestModel());

            validator.ShouldHaveValidationErrorFor(x => x.TransactionType, new string('A', 2));
        }
        public async void TransactionType_Create_null()
        {
            Mock <ITransactionHistoryRepository> transactionHistoryRepository = new Mock <ITransactionHistoryRepository>();

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

            var validator = new ApiTransactionHistoryRequestModelValidator(transactionHistoryRepository.Object);
            await validator.ValidateCreateAsync(new ApiTransactionHistoryRequestModel());

            validator.ShouldHaveValidationErrorFor(x => x.TransactionType, null as string);
        }