Ejemplo n.º 1
0
        public void SetUp()
        {
            _housingRepository = Mock.Of <IHousingRepository>();
            _housingService    = new HousingService(_housingRepository);

            _housing = new HousingItem()
            {
                Id   = 1,
                Name = "test",
                Memo = "Описание"
            };
        }
Ejemplo n.º 2
0
 public HousingController(IHousingRepository housingRepository)
 => _housingRepository = housingRepository;
Ejemplo n.º 3
0
 /// <summary>
 /// Конструктор класс.
 /// </summary>
 /// <param name="housing_repository">Интерфейс репозитория корпуса.</param>
 public HousingService(IHousingRepository housing_repository)
 {
     _housingRepository = housing_repository;
 }
Ejemplo n.º 4
0
 /// <summary>
 /// Конструктор без параметров.
 /// </summary>
 public HousingService()
 {
     _housingRepository = new HousingRepository();
 }
Ejemplo n.º 5
0
        public void SetUp()
        {
            _housingRepository = Mock.Of<IHousingRepository>();
            _housingService = new HousingService(_housingRepository);

            _housing = new HousingItem()
            {
                Id = 1,
                Name = "test",
                Memo = "Описание"
            };
        }
Ejemplo n.º 6
0
 /// <summary>
 /// Конструктор класс.
 /// </summary>
 /// <param name="housing_repository">Интерфейс репозитория корпуса.</param>
 public HousingService(IHousingRepository housing_repository)
 {
     _housingRepository = housing_repository;
 }
Ejemplo n.º 7
0
 /// <summary>
 /// Конструктор без параметров.
 /// </summary>
 public HousingService()
 {
     _housingRepository = new HousingRepository();
 }