public ClothesDatabaseValidateService(IClothesTable clothesTable, IGenderDatabaseValidateService genderDatabaseValidateService, IClothesTypeDatabaseValidateService clothesTypeDatabaseValidateService, IColorClothesDatabaseValidateService colorClothesDatabaseValidateService, ISizeGroupDatabaseValidateService sizeGroupDatabaseValidateService) : base(clothesTable) { _genderDatabaseValidateService = genderDatabaseValidateService; _clothesTypeDatabaseValidateService = clothesTypeDatabaseValidateService; _colorClothesDatabaseValidateService = colorClothesDatabaseValidateService; _sizeGroupDatabaseValidateService = sizeGroupDatabaseValidateService; }
/// <summary> /// База данных /// </summary> private static Mock <IBoutiqueDatabase> GetDatabase(IClothesTable clothesTable) => new Mock <IBoutiqueDatabase>(). Void(mock => mock.Setup(database => database.ClothesTable).Returns(clothesTable));
/// <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));