示例#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;
 }
 public CustomerController(IFossLockService <Customer> service,
                           IEntityConverter <Customer, CustomerViewModel> converter)
     : base(service, converter)
 {
     return;
 }