コード例 #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));
コード例 #2
0
 public ClothesTypeDatabaseValidateService(IClothesTypeTable clothesTypeTable,
                                           ICategoryDatabaseValidateService categoryDatabaseValidateService)
     : base(clothesTypeTable)
 {
     _categoryDatabaseValidateService = categoryDatabaseValidateService;
 }