public CardDataService(CardRepository cardRepository, UserCardRepository userCardRepository, CardAddressRepository cardAddressRepository, AddressRepository addressRepository) { this.cardRepository = cardRepository ?? throw new ArgumentNullException(nameof(cardRepository)); this.userCardRepository = userCardRepository ?? throw new ArgumentNullException(nameof(userCardRepository)); this.cardAddressRepository = cardAddressRepository ?? throw new ArgumentNullException(nameof(cardAddressRepository)); this.addressRepository = addressRepository ?? throw new ArgumentNullException(nameof(addressRepository)); }
public RegisterController() { _usRep = new UserCardRepository(); _ccRep = new CompanyCardRepository(); }
public HomeController() { _usRep = new UserCardRepository(); }
public UserCardRepositoryTests() { userCardRepository = GetInMemoryUserCardRepository(); userCard = CreateUserCard(); }