Exemple #1
0
        PersonCreator GetCreator()
        {
            IDataFabricator fabricator = new BogusFabricator();
            IUserDataAccess userData   = new InMemoryUserDataProvider();
            PersonCreator   creator    = new PersonCreator(fabricator, userData);

            return(creator);
        }
Exemple #2
0
        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));
        }
Exemple #3
0
        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));
        }