Beispiel #1
0
 protected override void Initialize()
 {
     base.Initialize();
     RepoFactoryMock
     .Setup(rf => rf.GetRepo <RandomText>())
     .Returns(randomTextRepo.Object);
 }
Beispiel #2
0
 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);
 }
Beispiel #3
0
 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);
 }
Beispiel #5
0
 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);
 }