/// <summary>
 /// Сервис проверки данных из базы
 /// </summary>
 private static IGenderDatabaseValidateService GetDatabaseValidationService(IGenderTable genderTable) =>
 new GenderDatabaseValidateService(genderTable);
Ejemplo n.º 2
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 GenderDatabaseValidateService(IGenderTable genderTable)
     : base(genderTable)
 {
 }