public SetupMockedServices() { _exposureKeyMock = new ExposureKeyMock(); _webContextMock = new WebContextMock(); _countryFactory = new CountryMockFactory(); _rndGenerator = new MockRandomGenerator(); }
public void Init() { _riskCalculator = new RiskCalculator(); _exposureKeyMock = new ExposureKeyMock(); _rndGenerator = new MockRandomGenerator(); _key = _exposureKeyMock.CreateMockedExposureKey(); }
public void Init() { _epochConverter = new Mock <IEpochConverter>(MockBehavior.Strict); SetupEpochConverterMock(); _keyValidator = new KeyValidator(_epochConverter.Object); _countryFactory = new CountryMockFactory(); _rndGenerator = new MockRandomGenerator(); _exposureKeyMock = new ExposureKeyMock(); _key = _exposureKeyMock.CreateMockedExposureKey(); }
public ExposureKeyMock() { _countryFactory = new CountryMockFactory(); _rndGenerator = new MockRandomGenerator(); _epochConverter = new EpochConverter(); _countries = new List <string>() { "AT", "BE", "BG", "HR", "CY", "CZ", "DK", "EE", "FI", "FR", "GR", "HU", "IE", "IT", "LV", "LT", "LU", "MT", "NL", "PL", "PT", "RO", "SK", "SI", "ES", "SE" }; _potentialDuplicate01 = MockValidKey(); _potentialDuplicate02 = MockValidKey(); MockListLength = 5; }
public WebContextMock() { _rndGenerator = new MockRandomGenerator(); }