public HomePageDataServiceFactory( IEntityFactory <DisplayDataEntity> displayDataEntityFactory, IHomeEntityFactory homeEntityFactory, IFormEntityFactory formEntityFactory) { this.displayDataEntityFactory = displayDataEntityFactory; this.homeEntityFactory = homeEntityFactory; this.formEntityFactory = formEntityFactory; }
public static void InitHomeControllerTest(TestContext testContext) { formEntityFactory = new FormEntityFactory(); homeEntityFactory = new HomeEntityFactory(); displayDataEntityFactory = new DisplayDataEntityFactory(); homePageDataServiceFactory = new HomePageDataServiceFactory(displayDataEntityFactory, homeEntityFactory, formEntityFactory); homePageDataService = new HomePageDataService(displayDataEntityFactory, homeEntityFactory, formEntityFactory); homeController = new HomeController(homePageDataServiceFactory); }
/// <summary> /// The constructor to initialize the HomePageDataService class. /// </summary> public HomePageDataService( IEntityFactory <DisplayDataEntity> displayDataEntityFactory, IHomeEntityFactory homeEntityFactory, IFormEntityFactory formEntityFactory) { this.displayDataEntityFactory = displayDataEntityFactory ?? throw new ArgumentNullException(nameof(displayDataEntityFactory)); this.homeEntityFactory = homeEntityFactory ?? throw new ArgumentNullException(nameof(homeEntityFactory)); this.formEntityFactory = formEntityFactory ?? throw new ArgumentNullException(nameof(formEntityFactory)); }