Пример #1
0
 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;
 }
Пример #3
0
        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;
        }
Пример #5
0
 public ProductController(IFossLockService <Product> service,
                          IEntityConverter <Product, ProductViewModel> converter)
     : base(service, converter)
 {
     return;
 }
Пример #6
0
 /// <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;
 }
Пример #7
0
 public CustomerController(IFossLockService <Customer> service,
                           IEntityConverter <Customer, CustomerViewModel> converter)
     : base(service, converter)
 {
     return;
 }