PersonCreator GetCreator() { IDataFabricator fabricator = new BogusFabricator(); IUserDataAccess userData = new InMemoryUserDataProvider(); PersonCreator creator = new PersonCreator(fabricator, userData); return(creator); }
public void GetFemalePictures_ReturnsListOfStrings() { //Given InMemoryUserDataProvider provider = new InMemoryUserDataProvider(); //When List <string> urls = provider.GetFemalePictures(); //Then Assert.All <string>(urls, url => Assert.NotEmpty(url)); Assert.All <string>(urls, url => Assert.NotNull(url)); }
public void GetLanguages_ReturnsListOfStrings() { //Given InMemoryUserDataProvider provider = new InMemoryUserDataProvider(); //When List <string> languages = provider.GetLanguages(); //Then Assert.All <string>(languages, language => Assert.NotEmpty(language)); Assert.All <string>(languages, language => Assert.NotNull(language)); }