public GuardianServiceTests() { this.storageBrokerMock = new Mock <IStorageBroker>(); this.loggingBrokerMock = new Mock <ILoggingBroker>(); this.dateTimeBrokerMock = new Mock <IDateTimeBroker>(); this.guardianService = new GuardianService( storageBroker: this.storageBrokerMock.Object, loggingBroker: this.loggingBrokerMock.Object, dateTimeBroker: this.dateTimeBrokerMock.Object); }
public void Setup() { _testGuardian = new Guardian() { GamerTag = "testy_mctesterson", Id = "abc-ez-as-123" }; _guardianRepository = Substitute.For <IGuardianRepository>(); _eloRepository = Substitute.For <IGuardianEloRepository>(); _efficiencyRepository = Substitute.For <IGuardianEfficiencyRepository>(); _matchResultsRepository = Substitute.For <IGuardianMatchResultsRepository>(); _guardianRepository.CreateGuardian(Arg.Any <Guardian>()).ReturnsForAnyArgs(_testGuardian.Id); _guardianService = new GuardianService(_guardianRepository, _eloRepository, _efficiencyRepository, _matchResultsRepository); }
public GuardiansController(IGuardianService guardianService) => this.guardianService = guardianService;
public GuardiansController(IGuardianService guardianService, IMapper mapper) { _guardianService = guardianService; _mapper = mapper; }
public HomeController(IMatchService matchService, IGuardianService guardianService) { _matchService = matchService; _guardianService = guardianService; }
public GuardiansController(IMatchService matchService, IGuardianService guardianService, ILogger <GuardiansController> logger) { _matchService = matchService; _guardianService = guardianService; _logger = logger; }
public MatchMakingController(IGuardianService guardianService, IMatchMakingService matchMakingService) { _guardianService = guardianService; _matchMakingService = matchMakingService; }