示例#1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ProductsService"/> class.
 /// </summary>
 /// <param name="mappers">The mappers<see cref="IMappers"/></param>
 /// <param name="mammothDBContext">The mammothDBContext<see cref="MammothDBContext"/></param>
 public ProductsService(
     IMappers mappers,
     MammothDBContext mammothDBContext)
 {
     this.mappers          = mappers;
     this.mammothDBContext = mammothDBContext;
 }
示例#2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="SalesService"/> class.
 /// </summary>
 /// <param name="mappers">The mappers<see cref="IMappers"/></param>
 /// <param name="mammothDBContext">The mammothDBContext<see cref="MammothDBContext"/></param>
 /// <param name="session">The session<see cref="ISession"/></param>
 public SalesService(
     IMappers mappers,
     MammothDBContext mammothDBContext,
     ISession session)
 {
     this.mappers          = mappers;
     this.mammothDBContext = mammothDBContext;
     this.session          = session;
 }
示例#3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ReportsService"/> class.
 /// </summary>
 /// <param name="configuration">The configuration<see cref="IConfiguration"/>.</param>
 /// <param name="mammothDBContext">The mammothDBContext<see cref="MammothDBContext"/>.</param>
 /// <param name="mappers">The mappers<see cref="IMappers"/>.</param>
 public ReportsService(
     IConfiguration configuration,
     MammothDBContext mammothDBContext,
     IMappers mappers)
 {
     this.configuration    = configuration;
     this.mammothDBContext = mammothDBContext;
     this.mappers          = mappers;
 }
示例#4
0
 /// <summary>
 /// Initializes a new instance of the <see cref="AuthenticateService"/> class.
 /// </summary>
 /// <param name="mappers">The mappers<see cref="IMappers"/>.</param>
 /// <param name="encryptionHelper">The encryptionHelper<see cref="IEncryptionHelper"/>.</param>
 /// <param name="mammothDBContext">The mammothDBContext<see cref="MammothDBContext"/>.</param>
 public AuthenticateService(
     IMappers mappers,
     ILogger <AuthenticateService> logger,
     IEncryptionHelper encryptionHelper,
     MammothDBContext mammothDBContext)
 {
     this.mappers          = mappers;
     this.logger           = logger;
     this.encryptionHelper = encryptionHelper;
     this.mammothDBContext = mammothDBContext;
 }