Пример #1
0
        protected BaseService(UserManager <User> userManager,
                              RobotsWorldContext context,
                              IMapper mapper)
        {
            this.UserManager = userManager;

            this.Context = context;
            this.Mapper  = mapper;
        }
Пример #2
0
        public void SetUp()
        {
            Mapper.Reset();
            Mapper.Initialize(x => { x.AddProfile <MapperProfile>(); });
            var services = SetServices();

            this.Provider = services.BuildServiceProvider();
            this.Context  = this.Provider.GetRequiredService <RobotsWorldContext>();
            SetScoppedServiceProvider();
        }
Пример #3
0
 public VendorService(UserManager <User> userManager, RobotsWorldContext context, IMapper mapper) : base(userManager, context, mapper)
 {
 }
Пример #4
0
 public SubAssemblyService(UserManager <User> userManager, RobotsWorldContext context, IMapper mapper)
     : base(userManager, context, mapper)
 {
 }
Пример #5
0
 public DeliveryService(UserManager <User> userManager, RobotsWorldContext context, IMapper mapper, ITransportTypeService transportTypeService)
     : base(userManager, context, mapper)
 {
     this.transportTypeService = transportTypeService;
 }
Пример #6
0
 public PartService(UserManager <User> userManager, RobotsWorldContext context, IMapper mapper, IVendorService vendorService, ISubAssemblyService subAssemblyService)
     : base(userManager, context, mapper)
 {
     this.vendorService      = vendorService;
     this.subAssemblyService = subAssemblyService;
 }
Пример #7
0
 public ChatHub(RobotsWorldContext db)
 {
     this.db = db;
 }
Пример #8
0
 public AdminService(UserManager<User> userManager, RobotsWorldContext context, IMapper mapper, RoleManager<IdentityRole> roleManager) : base(userManager, context, mapper)
 {
     this.roleManager = roleManager;
 }
Пример #9
0
 public TransportTypeService(UserManager <User> userManager, RobotsWorldContext context, IMapper mapper) : base(userManager, context, mapper)
 {
 }
Пример #10
0
 public UserService(SignInManager <User> signInManager, UserManager <User> userManager, RobotsWorldContext context, IMapper mapper)
     : base(userManager, context, mapper)
 {
     this.signInManager = signInManager;
 }