protected override void Initialize() { base.Initialize(); RepoFactoryMock .Setup(rf => rf.GetRepo <RandomText>()) .Returns(randomTextRepo.Object); }
protected override void Initialize() { base.Initialize(); regionRepo.Setup(repo => repo.GetRandom(It.IsAny <string>())).Returns(new Region { Name = regionName }); RepoFactoryMock.Setup(rf => rf.GetAddressPartRepo <Region>()).Returns(regionRepo.Object); }
protected override void Initialize() { base.Initialize(); countryRepo.Setup(repo => repo.GetRandom()).Returns(new Country { Name = CountryName }); RepoFactoryMock.Setup(rf => rf.GetRepo <Country>()).Returns(countryRepo.Object); }
protected override void Initialize() { base.Initialize(); cityRepo.Setup(repo => repo.GetRandom(It.IsAny <string>())).Returns(new City { Name = cityName }); RepoFactoryMock.Setup(rf => rf.GetAddressPartRepo <City>()).Returns(cityRepo.Object); }
protected override void Initialize() { base.Initialize(); firstNameRepo.Setup(repo => repo.GetRandom()).Returns(new LastName { Name = lastName }); RepoFactoryMock.Setup(rf => rf.GetRepo <LastName>()).Returns(firstNameRepo.Object); }