Exemplo n.º 1
0
        public ProductRepositoryTests()
        {
            var builder = new DbContextOptionsBuilder <FitwebContext>();

            builder.UseSqlServer($"Server=(localdb)\\mssqllocaldb;Database=fitweb_{Guid.NewGuid()};Trusted_Connection=True;" +
                                 $"MultipleActiveResultSets=true");

            _fixture = new FitwebContext(builder.Options);
            _fixture.Database.Migrate();
            _sut = new ProductRepository(_fixture);
        }
Exemplo n.º 2
0
 public AdminInitializer(FitwebContext context, ILoggerManager logger,
                         UserManager <User> userManager) : base(context, logger)
 {
     _userManager = userManager;
 }
Exemplo n.º 3
0
 public GetCategoriesHandler(FitwebContext context)
 {
     _context = context;
 }
Exemplo n.º 4
0
 public GetDaysHandler(FitwebContext context)
 {
     _context = context;
 }
Exemplo n.º 5
0
 public ProductRepository(FitwebContext context)
 {
     _context = context;
 }
Exemplo n.º 6
0
 public GetPartsHandler(FitwebContext context)
 {
     _context = context;
 }
Exemplo n.º 7
0
 public ProductInitializer(FitwebContext context, ILoggerManager logger,
                           ICsvLoader <Product, ProductMap> loader, IProductRepository productRepository) : base(context, logger)
 {
     _loader            = loader;
     _productRepository = productRepository;
 }
Exemplo n.º 8
0
 public RoleInitializer(FitwebContext context, ILoggerManager logger,
                        RoleManager <Role> roleManager) : base(context, logger)
 {
     _roleManager = roleManager;
 }
Exemplo n.º 9
0
 protected DataInitializer(FitwebContext context, ILoggerManager logger)
 {
     _context = context;
     _logger  = logger;
 }
Exemplo n.º 10
0
 public ExerciseRepository(FitwebContext context)
 {
     _context = context;
 }
Exemplo n.º 11
0
 public ExerciseInitializer(FitwebContext context, ILoggerManager logger,
                            ICsvLoader <Exercise, ExerciseMap> loader, IExerciseRepository exerciseRepository) : base(context, logger)
 {
     _loader             = loader;
     _exerciseRepository = exerciseRepository;
 }
Exemplo n.º 12
0
 public UserRepository(FitwebContext context)
 {
     _context = context;
 }
Exemplo n.º 13
0
 public RefreshTokenRepository(FitwebContext context)
 {
     _context = context;
 }
Exemplo n.º 14
0
 public RolesController(FitwebContext context)
 {
     _context = context;
 }
Exemplo n.º 15
0
 public AthleteRepository(FitwebContext context)
 {
     _context = context;
 }