Browse Source

part-5.25

herlanS_ 5 years ago
parent
commit
01fd99322c

+ 12 - 0
src/app/dtcservice/user.service.spec.ts

@@ -0,0 +1,12 @@
+import { TestBed } from '@angular/core/testing';
+
+import { UserService } from './user.service';
+
+describe('UserService', () => {
+  beforeEach(() => TestBed.configureTestingModule({}));
+
+  it('should be created', () => {
+    const service: UserService = TestBed.get(UserService);
+    expect(service).toBeTruthy();
+  });
+});

+ 9 - 0
src/app/dtcservice/user.service.ts

@@ -0,0 +1,9 @@
+import { Injectable } from '@angular/core';
+
+@Injectable({
+  providedIn: 'root'
+})
+export class UserService {
+
+  constructor() { }
+}

+ 6 - 0
src/app/dtcservice/user.ts

@@ -0,0 +1,6 @@
+export class User {
+    username: string;
+    password: string;
+    fullname: string;
+    id: number;
+}