예제 #1
0
 public FakerContainer()
 {
     Address       = new AddressFaker(this);
     App           = new AppFaker(this);
     Beer          = new BeerFaker(this);
     Book          = new BookFaker(this);
     Boolean       = new BooleanFaker();
     Business      = new BusinessFaker(this);
     Color         = new ColorFaker(this);
     Company       = new CompanyFaker(this);
     Date          = new DateFaker();
     Fake          = new FakeFaker(this);
     Friends       = new FriendsFaker(this);
     GameOfThrones = new GameOfThronesFaker(this);
     Lorem         = new LoremFaker(this);
     Name          = new NameFaker(this);
     Number        = new NumberFaker();
     Pokemon       = new PokemonFaker(this);
     Random        = new RandomFaker();
     RockBand      = new RockBandFaker(this);
     Superhero     = new SuperheroFaker(this);
     Team          = new TeamFaker(this);
     Time          = new TimeFaker();
     TwinPeaks     = new TwinPeaksFaker(this);
     Zelda         = new ZeldaFaker(this);
 }
예제 #2
0
 public void CompanyFakerTest()
 {
     DisplayAndExecute(new Expression <Func <string> >[] {
         () => CompanyFaker.Name(),
         () => CompanyFaker.BS(),
     });
 }
예제 #3
0
        public void SetUp()
        {
            _fakerContainer = A.Fake <IFakerContainer>();
            _companyFaker   = new CompanyFaker(_fakerContainer);

            A.CallTo(() => _fakerContainer.Fake).Returns(new FakeFaker(_fakerContainer));
        }
예제 #4
0
        protected override void Seed(Model1 model1)
        {
            for (int i = 0; i < 10; i++)
            {
                Depo depo = new Depo
                {
                    Ad    = CompanyFaker.Name(),
                    Soyad = LocationFaker.Country()
                };
                model1.Depo.Add(depo);
            }

            model1.SaveChanges();
        }
예제 #5
0
 public FakerContainer()
 {
     Address        = new AddressFaker(this);
     Ancient        = new AncientFaker(this);
     App            = new AppFaker(this);
     Avatar         = new AvatarFaker(this);
     Beer           = new BeerFaker(this);
     Book           = new BookFaker(this);
     Boolean        = new BooleanFaker();
     Business       = new BusinessFaker(this);
     Cat            = new CatFaker(this);
     ChuckNorris    = new ChuckNorrisFaker(this);
     Coffee         = new CoffeeFaker(this);
     Color          = new ColorFaker(this);
     Company        = new CompanyFaker(this);
     Date           = new DateFaker();
     DragonBall     = new DragonBallFaker(this);
     Educator       = new EducatorFaker(this);
     Fake           = new FakeFaker(this);
     File           = new FileFaker(this);
     Fillmurray     = new FillmurrayFaker();
     Food           = new FoodFaker(this);
     Friends        = new FriendsFaker(this);
     GameOfThrones  = new GameOfThronesFaker(this);
     Hacker         = new HackerFaker(this);
     HarryPotter    = new HarryPotterFaker(this);
     Internet       = new InternetFaker(this);
     LordOfTheRings = new LordOfTheRingsFaker(this);
     Lorem          = new LoremFaker(this);
     Music          = new MusicFaker(this);
     Name           = new NameFaker(this);
     Number         = new NumberFaker();
     PhoneNumber    = new PhoneNumberFaker(this);
     Placeholdit    = new PlaceholditFaker(this);
     Pokemon        = new PokemonFaker(this);
     Random         = new RandomFaker();
     RickAndMorty   = new RickAndMortyFaker(this);
     RockBand       = new RockBandFaker(this);
     SlackEmoji     = new SlackEmojiFaker(this);
     Space          = new SpaceFaker(this);
     StarWars       = new StarWarsFaker(this);
     Superhero      = new SuperheroFaker(this);
     Team           = new TeamFaker(this);
     Time           = new TimeFaker();
     TwinPeaks      = new TwinPeaksFaker(this);
     University     = new UniversityFaker(this);
     Vehicle        = new VehicleFaker(this);
     Zelda          = new ZeldaFaker(this);
 }