ошибки
This commit is contained in:
parent
caab32ca98
commit
13ec04b0ee
@ -5,6 +5,7 @@ using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using UniversityContracts.BindingModels;
|
||||
using UniversityContracts.BusinessLogicContracts;
|
||||
using UniversityContracts.SearchModels;
|
||||
using UniversityContracts.StoragesContracts;
|
||||
|
||||
namespace UniversityBusinessLogics.BusinessLogic
|
||||
@ -29,18 +30,14 @@ namespace UniversityBusinessLogics.BusinessLogic
|
||||
{
|
||||
return;
|
||||
}
|
||||
if (string.IsNullOrEmpty(model.PhoneNumber))
|
||||
if (string.IsNullOrEmpty(model.Login))
|
||||
{
|
||||
throw new ArgumentNullException(nameof(model.PhoneNumber), "Нет логина клиента");
|
||||
throw new ArgumentNullException(nameof(model.Login), "Нет логина клиента");
|
||||
}
|
||||
if (string.IsNullOrEmpty(model.Password))
|
||||
{
|
||||
throw new ArgumentNullException(nameof(model.Password), "Нет пароля клиента");
|
||||
}
|
||||
if (model.PhoneNumber.Length is < 12)
|
||||
{
|
||||
throw new ArgumentException(nameof(model.PhoneNumber), "Длина номера телефона должна быть 11 цифр");
|
||||
}
|
||||
|
||||
if (model.Password.Length < 5)
|
||||
{
|
||||
|
@ -3,6 +3,8 @@ using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using UniversityContracts.BusinessLogicContracts;
|
||||
using UniversityContracts.StoragesContracts;
|
||||
|
||||
namespace UniversityBusinessLogics.BusinessLogic
|
||||
{
|
||||
@ -10,8 +12,8 @@ namespace UniversityBusinessLogics.BusinessLogic
|
||||
{
|
||||
private readonly ILogger _logger;
|
||||
private readonly IPaymentStorage _paymentStorage;
|
||||
private readonly IOperationStorage _carStorage;
|
||||
public PaymentLogic(ILogger<PaymentLogic> logger, IPaymentStorage paymentStorage, IOperationStorage carStorage)
|
||||
private readonly IClassStorage _carStorage;
|
||||
public PaymentLogic(ILogger<PaymentLogic> logger, IPaymentStorage paymentStorage, IClassStorage carStorage)
|
||||
{
|
||||
_logger = logger;
|
||||
_paymentStorage = paymentStorage;
|
||||
|
@ -3,6 +3,11 @@ using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using UniversityContracts.BindingModels;
|
||||
using UniversityContracts.BusinessLogicContracts;
|
||||
using UniversityContracts.SearchModels;
|
||||
using UniversityContracts.StoragesContracts;
|
||||
using UniversityContracts.ViewModels;
|
||||
|
||||
namespace UniversityBusinessLogics.BusinessLogic
|
||||
{
|
||||
|
@ -1,7 +0,0 @@
|
||||
namespace UniversityContracts
|
||||
{
|
||||
public class Class1
|
||||
{
|
||||
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user