public SaveItemInteractor( IStarRepositoryGateway entityGateway, IStarBusinessEntity starBl) { this.EntityGateway = entityGateway; this.StarItemBusinessLogic = starBl; this.OutputBoundary = new NoOutputBoundary(); }
public void TestSaveStarItem() { // var connection = new SqliteConnection("DataSource=:memory:"); var factory = new StarRepositoryGatewaySqlServerFactory(); IStarRepositoryGateway gateWay = factory.CreateSqLite(); gateWay.StoreStarItem(new StarItemDto() { Id = Guid.NewGuid(), ItemName = "Hello" }); }
public ISaveStarItemInputPort Create( IStarBusinessEntity starBusinessEntity, IStarRepositoryGateway starRepositoryGateway) { return(new SaveItemInteractor(starRepositoryGateway, starBusinessEntity)); }