public SubscriptionService(IUnitOfWork unitOfWork, ISoftwareManager softwareManager) { _unitOfWork = unitOfWork; _softwareManager = softwareManager; _customerManager = new CustomerService(_unitOfWork); _customerComputerInfoManager = new CustomerComputerInfoService(_unitOfWork, this); }
public RegisterComputerService(ISoftwareManager softwareManager, ICustomerManager customerManager, ISubscriptionManager subscriptionManager, ICustomerComputerInfoManager customerComputerInfoManager) { _softwareManager = softwareManager; _customerManager = customerManager; _subscriptionManager = subscriptionManager; _customerComputerInfoManager = customerComputerInfoManager; }
public CustomerComputerInfoTests(ITestOutputHelper outputHelper) { this._outputHelper = outputHelper; var optionsBuilder = new DbContextOptionsBuilder <EfAsLicenceContext>(); optionsBuilder.UseSqlServer("Integrated Security=SSPI;Persist Security Info=False;Initial Catalog=AS_LICENCE;Data Source=."); EfAsLicenceContext context = new EfAsLicenceContext(optionsBuilder.Options); _unitOfWork = new EfUnitOfWork(context); _customerManager = new CustomerService(_unitOfWork); _softwareManager = new SoftwareService(_unitOfWork); _subscriptionManager = new SubscriptionService(_unitOfWork, _softwareManager); _customerComputerInfoManager = new CustomerComputerInfoService(_unitOfWork, _subscriptionManager); }
public CustomerComputerInfoController(ICustomerComputerInfoManager customerComputerInfoManager) { _customerComputerInfoManager = customerComputerInfoManager; }