public AthleteProductService(IAthleteRepository athleteRepository, IProductRepository productRepository, IAthleteDietStatsService athleteDietStatsService) { _athleteRepository = athleteRepository; _productRepository = productRepository; _athleteDietStatsService = athleteDietStatsService; }
public AthleteDietStatsServiceTests() { _athleteRepository = Substitute.For <IAthleteRepository>(); _mapper = AutoMapperConfig.Initialize(); _fixture = new Fixture(); _fixture.Behaviors.OfType <ThrowingRecursionBehavior>().ToList() .ForEach(b => _fixture.Behaviors.Remove(b)); _fixture.Behaviors.Add(new OmitOnRecursionBehavior()); _sut = new AthleteDietStatsService(_athleteRepository, _mapper); }
public AthleteProductServiceTests() { _fixture = new Fixture(); _fixture.Behaviors.OfType <ThrowingRecursionBehavior>().ToList() .ForEach(b => _fixture.Behaviors.Remove(b)); _fixture.Behaviors.Add(new OmitOnRecursionBehavior()); _athleteRepository = Substitute.For <IAthleteRepository>(); _productRepository = Substitute.For <IProductRepository>(); _athleteDietStatsService = Substitute.For <IAthleteDietStatsService>(); _sut = new AthleteProductService(_athleteRepository, _productRepository, _athleteDietStatsService); }
public GetAthleteDietStatsHandler(IAthleteDietStatsService athleteDietStatsService) { _athleteDietStatsService = athleteDietStatsService; }