public LicenseController(IFossLockService <License> service, IEntityConverter <License, LicenseViewModel> converter, IFossLockService <Customer> customerService) { this.service = service; this.converter = converter; this.customerService = customerService; }
public LicenseController(IFossLockService<License> service, IEntityConverter<License, LicenseViewModel> converter, IFossLockService<Customer> customerService) { this.service = service; this.converter = converter; this.customerService = customerService; }
public void SetUp() { converter = new CustomerConverter(); serviceMocker = new Mock <IFossLockService <Customer> >(); service = serviceMocker.Object; controllerMocker = new Mock <PrimaryEntityCrudController <Customer, CustomerViewModel> >( service, converter) { CallBase = true }; controller = controllerMocker.Object; }
public void SetUp() { converter = new CustomerConverter(); serviceMocker = new Mock<IFossLockService<Customer>>(); service = serviceMocker.Object; controllerMocker = new Mock<PrimaryEntityCrudController<Customer, CustomerViewModel>>( service, converter) { CallBase = true }; controller = controllerMocker.Object; }
public ProductController(IFossLockService <Product> service, IEntityConverter <Product, ProductViewModel> converter) : base(service, converter) { return; }
/// <summary> /// Instantiates a new controller object. /// </summary> /// <param name="service"> /// The service object that will be used by all the CRUD methods for /// manipulation and retrieval of data. /// </param> /// <param name="converter"></param> public PrimaryEntityCrudController(IFossLockService <TEntity> service, IEntityConverter <TEntity, TViewModel> converter) { this.service = service; this.converter = converter; }
public CustomerController(IFossLockService <Customer> service, IEntityConverter <Customer, CustomerViewModel> converter) : base(service, converter) { return; }