Ejemplo n.º 1
0
 public ClothesDatabaseValidateService(IClothesTable clothesTable,
                                       IGenderDatabaseValidateService genderDatabaseValidateService,
                                       IClothesTypeDatabaseValidateService clothesTypeDatabaseValidateService,
                                       IColorClothesDatabaseValidateService colorClothesDatabaseValidateService,
                                       ISizeGroupDatabaseValidateService sizeGroupDatabaseValidateService)
     : base(clothesTable)
 {
     _genderDatabaseValidateService       = genderDatabaseValidateService;
     _clothesTypeDatabaseValidateService  = clothesTypeDatabaseValidateService;
     _colorClothesDatabaseValidateService = colorClothesDatabaseValidateService;
     _sizeGroupDatabaseValidateService    = sizeGroupDatabaseValidateService;
 }
Ejemplo n.º 2
0
 /// <summary>
 /// База данных
 /// </summary>
 private static Mock <IBoutiqueDatabase> GetDatabase(IClothesTable clothesTable) =>
 new Mock <IBoutiqueDatabase>().
 Void(mock => mock.Setup(database => database.ClothesTable).Returns(clothesTable));
Ejemplo n.º 3
0
 /// <summary>
 /// База данных
 /// </summary>
 private static Mock <IBoutiqueDatabase> GetDatabase(IGenderTable genderTable, IClothesTypeTable clothesTypeTable,
                                                     IClothesTable clothesTable) =>
 new Mock <IBoutiqueDatabase>().
 Void(mock => mock.Setup(database => database.GendersTable).Returns(genderTable)).
 Void(mock => mock.Setup(database => database.ClotheTypeTable).Returns(clothesTypeTable)).
 Void(mock => mock.Setup(database => database.ClothesTable).Returns(clothesTable));