private void Initialize() { this.context = KeepFitDbContextInMemoryFactory.Initialize(); this.mapper = AutoMapperFactory.Initialize(); this.myCloudinary = new Mock <IMyCloudinary>(); this.myCloudinary.Setup(x => x.UploadImage(this.image)) .Returns("url"); this.service = new ProductsService(context, mapper, myCloudinary.Object); }
private void Initialize() { this.context = KeepFitDbContextInMemoryFactory.Initialize(); this.mapper = AutoMapperFactory.Initialize(); var productService = new Mock <IProductsService>(); productService.Setup(x => x.GetProductByIdAsync <ProductViewModel>(ProductId)) .Returns(Task.FromResult(GetMockedViewModel())); this.service = new ReviewsService(context, productService.Object, mapper); }
private void Initialize() { this.context = KeepFitDbContextInMemoryFactory.Initialize(); this.mapper = AutoMapperFactory.Initialize(); this.myCloudinary = new Mock <IMyCloudinary>(); //this.formFile = new Mock<IFormFile>(); this.myCloudinary.Setup(x => x.UploadImage(this.image)) .Returns(Url); this.service = new JobApplicantService(context, mapper, myCloudinary.Object); }
private void Initialize() { this.context = KeepFitDbContextInMemoryFactory.Initialize(); this.mapper = AutoMapperFactory.Initialize(); var basketService = new Mock <IBasketService>(); basketService.Setup(x => x.GetBasketTotalPriceAsync(UserOneName)) .Returns(Task.FromResult(OrderTotalPrice)); this.service = new OrdersService( context, basketService.Object, mapper); }
private void Initialize() { this.context = KeepFitDbContextInMemoryFactory.Initialize(); this.mapper = AutoMapperFactory.Initialize(); }
public AddressService(KeepFitDbContext context, IMapper mapper) { this.context = context; this.mapper = mapper; }
public ReviewsService(KeepFitDbContext context, IProductsService productsService, IMapper mapper) { this.context = context; this.productsService = productsService; this.mapper = mapper; }
public JobApplicantService(KeepFitDbContext context, IMapper mapper, IMyCloudinary cloudinary) { this.context = context; this.mapper = mapper; this.cloudinary = cloudinary; }
public UsersSerivce(KeepFitDbContext context, IMapper mapper) { this.context = context; this.mapper = mapper; }
public PaymentService(KeepFitDbContext context) { this.context = context; }
public CreatinesService(KeepFitDbContext context, IMapper mapper) { this.context = context; this.mapper = mapper; }
public ProductsService(KeepFitDbContext context, IMapper mapper, IMyCloudinary cloudinary) { this.context = context; this.mapper = mapper; this.cloudinary = cloudinary; }
public JobPositionService(KeepFitDbContext context, IMapper mapper) { this.context = context; this.mapper = mapper; }
public ProteinsService(KeepFitDbContext context, IMapper mapper) { this.context = context; this.mapper = mapper; }
public OrdersService(KeepFitDbContext context, IBasketService basketService, IMapper mapper) { this.context = context; this.basketService = basketService; this.mapper = mapper; }
private void Initialize() { this.context = KeepFitDbContextInMemoryFactory.Initialize(); this.mapper = AutoMapperFactory.Initialize(); this.service = new UsersSerivce(context, mapper); }
public FavoriteService(KeepFitDbContext context, IMapper mapper) { this.context = context; this.mapper = mapper; }