From 1bee72e92574b30c0d918394a54ab667165dd00b Mon Sep 17 00:00:00 2001
From: OZGCloud <ozgcloud@mgm-tp.com>
Date: Tue, 27 Jul 2021 13:56:43 +0200
Subject: [PATCH] 1062 add components for postfach messages

---
 .../postfach-message-block.component.html     |  1 +
 .../postfach-message-block.component.scss     |  0
 .../postfach-message-block.component.spec.ts  | 30 +++++++++++++++++++
 .../postfach-message-block.component.ts       | 11 +++++++
 4 files changed, 42 insertions(+)
 create mode 100644 goofy-client/libs/postfach-message/src/lib/postfach-message-list-container/postfach-message-list/postfach-message-block/postfach-message-block.component.html
 create mode 100644 goofy-client/libs/postfach-message/src/lib/postfach-message-list-container/postfach-message-list/postfach-message-block/postfach-message-block.component.scss
 create mode 100644 goofy-client/libs/postfach-message/src/lib/postfach-message-list-container/postfach-message-list/postfach-message-block/postfach-message-block.component.spec.ts
 create mode 100644 goofy-client/libs/postfach-message/src/lib/postfach-message-list-container/postfach-message-list/postfach-message-block/postfach-message-block.component.ts

diff --git a/goofy-client/libs/postfach-message/src/lib/postfach-message-list-container/postfach-message-list/postfach-message-block/postfach-message-block.component.html b/goofy-client/libs/postfach-message/src/lib/postfach-message-list-container/postfach-message-list/postfach-message-block/postfach-message-block.component.html
new file mode 100644
index 0000000000..3baf6a5bca
--- /dev/null
+++ b/goofy-client/libs/postfach-message/src/lib/postfach-message-list-container/postfach-message-list/postfach-message-block/postfach-message-block.component.html
@@ -0,0 +1 @@
+<goofy-client-postfach-message *ngFor="let message of messageBlock"></goofy-client-postfach-message>
diff --git a/goofy-client/libs/postfach-message/src/lib/postfach-message-list-container/postfach-message-list/postfach-message-block/postfach-message-block.component.scss b/goofy-client/libs/postfach-message/src/lib/postfach-message-list-container/postfach-message-list/postfach-message-block/postfach-message-block.component.scss
new file mode 100644
index 0000000000..e69de29bb2
diff --git a/goofy-client/libs/postfach-message/src/lib/postfach-message-list-container/postfach-message-list/postfach-message-block/postfach-message-block.component.spec.ts b/goofy-client/libs/postfach-message/src/lib/postfach-message-list-container/postfach-message-list/postfach-message-block/postfach-message-block.component.spec.ts
new file mode 100644
index 0000000000..ab1fb3a53d
--- /dev/null
+++ b/goofy-client/libs/postfach-message/src/lib/postfach-message-list-container/postfach-message-list/postfach-message-block/postfach-message-block.component.spec.ts
@@ -0,0 +1,30 @@
+import { ComponentFixture, TestBed } from '@angular/core/testing';
+
+import { PostfachMessageBlockComponent } from './postfach-message-block.component';
+import { MockComponent } from 'ng-mocks';
+import { PostfachMessageComponent } from './postfach-message/postfach-message.component';
+
+describe('PostfachMessageBlockComponent', () => {
+	let component: PostfachMessageBlockComponent;
+	let fixture: ComponentFixture<PostfachMessageBlockComponent>;
+
+	beforeEach(async () => {
+		await TestBed.configureTestingModule({
+			declarations: [
+				PostfachMessageBlockComponent,
+				MockComponent(PostfachMessageComponent)
+			]
+		})
+			.compileComponents();
+	});
+
+	beforeEach(() => {
+		fixture = TestBed.createComponent(PostfachMessageBlockComponent);
+		component = fixture.componentInstance;
+		fixture.detectChanges();
+	});
+
+	it('should create', () => {
+		expect(component).toBeTruthy();
+	});
+});
diff --git a/goofy-client/libs/postfach-message/src/lib/postfach-message-list-container/postfach-message-list/postfach-message-block/postfach-message-block.component.ts b/goofy-client/libs/postfach-message/src/lib/postfach-message-list-container/postfach-message-list/postfach-message-block/postfach-message-block.component.ts
new file mode 100644
index 0000000000..7660130ce6
--- /dev/null
+++ b/goofy-client/libs/postfach-message/src/lib/postfach-message-list-container/postfach-message-list/postfach-message-block/postfach-message-block.component.ts
@@ -0,0 +1,11 @@
+import { Component, Input, OnInit } from '@angular/core';
+
+@Component({
+  selector: 'goofy-client-postfach-message-block',
+  templateUrl: './postfach-message-block.component.html',
+  styleUrls: ['./postfach-message-block.component.scss']
+})
+export class PostfachMessageBlockComponent {
+
+	@Input() messageBlock: [];
+}
-- 
GitLab