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); }
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); }
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(); }
public AlbumTestDataBuilder() { Name = UnitTestValueGenerator.GenerateRandomCode(); }
protected override void EditItem(FileInformation entity) { entity.Filename = UnitTestValueGenerator.GenerateRandomCode(); }
protected override void EditItem(Song entity) { entity.Title = UnitTestValueGenerator.GenerateRandomCode(); }
public PlaylistTestDataBuilder() { Name = UnitTestValueGenerator.GenerateRandomCode(); }
public ArticleCreateDtoTestDataBuilder() { Name = UnitTestValueGenerator.GenerateRandomCode(32); }