Exemplo n.º 1
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));
 public ClothesTypeDatabaseValidateService(IClothesTypeTable clothesTypeTable,
                                           ICategoryDatabaseValidateService categoryDatabaseValidateService)
     : base(clothesTypeTable)
 {
     _categoryDatabaseValidateService = categoryDatabaseValidateService;
 }