public ShoppingListTestDataBuilder()
        {
            this.Store = new StoreTestDataBuilder();

            // Auditable
            this.CreatedBy  = UnitTestValueGenerator.GenerateText(16);
            this.ModifiedBy = UnitTestValueGenerator.GenerateText(16);
            this.CreatedOn  = DateTime.Now.AddDays(-5);
            this.ModifiedOn = DateTime.Now.AddDays(-2);
        }
        public ArticleTestDataBuilder()
        {
            this.Name = UnitTestValueGenerator.GenerateText(128);

            // Auditable
            this.CreatedBy  = UnitTestValueGenerator.GenerateText(16);
            this.ModifiedBy = UnitTestValueGenerator.GenerateText(16);
            this.CreatedOn  = DateTime.Now.AddDays(-5);
            this.ModifiedOn = DateTime.Now.AddDays(-2);
        }
Esempio n. 3
0
        public AddressTestDataBuilder()
        {
            this.Street = UnitTestValueGenerator.GenerateText(128);
            this.Number = UnitTestValueGenerator.GenerateText(2, UnitTestValueGenerator.Numeric);
            this.City   = UnitTestValueGenerator.GenerateText(16);

            // Auditable
            this.CreatedBy  = UnitTestValueGenerator.GenerateText(16);
            this.ModifiedBy = UnitTestValueGenerator.GenerateText(16);
            this.CreatedOn  = DateTime.Now.AddDays(-5);
            this.ModifiedOn = DateTime.Now.AddDays(-2);
        }
Esempio n. 4
0
 public SongTestDataBuilder()
 {
     Title = UnitTestValueGenerator.GenerateRandomCode();
     //Genres = new List<Genre>()
     //{
     //    new GenreTestDataBuilder()
     //};
     //Album = new AlbumTestDataBuilder();
     //FileInformation = new FileInformationTestDataBuilder();
     Year     = 1999;
     Duration = new TimeSpan(0, 3, 23);
     //Artists = new List<Artist>()
     //{
     //    new ArtistTestDataBuilder()
     //};
 }
 protected override void EditItem(Artist entity)
 {
     entity.Name = UnitTestValueGenerator.GenerateRandomCode();
 }
Esempio n. 6
0
 public AlbumTestDataBuilder()
 {
     Name = UnitTestValueGenerator.GenerateRandomCode();
 }
 protected override void EditItem(FileInformation entity)
 {
     entity.Filename = UnitTestValueGenerator.GenerateRandomCode();
 }
Esempio n. 8
0
 protected override void EditItem(Song entity)
 {
     entity.Title = UnitTestValueGenerator.GenerateRandomCode();
 }
Esempio n. 9
0
 public PlaylistTestDataBuilder()
 {
     Name = UnitTestValueGenerator.GenerateRandomCode();
 }
 public ArticleCreateDtoTestDataBuilder()
 {
     Name = UnitTestValueGenerator.GenerateRandomCode(32);
 }