Create service notification message and roleId service

This commit is contained in:
Peter Maquiran
2023-02-17 09:21:07 +01:00
parent 289cb30a6b
commit 9c108b6885
5 changed files with 74 additions and 6 deletions
@@ -0,0 +1,16 @@
import { TestBed } from '@angular/core/testing';
import { NotificationMessageService } from './notification-message.service';
describe('NotificationMessageService', () => {
let service: NotificationMessageService;
beforeEach(() => {
TestBed.configureTestingModule({});
service = TestBed.inject(NotificationMessageService);
});
it('should be created', () => {
expect(service).toBeTruthy();
});
});
@@ -0,0 +1,13 @@
import { Injectable } from '@angular/core';
@Injectable({
providedIn: 'root'
})
export class NotificationMessageService {
constructor() { }
noInternetConnection = 'Sem acesso à internet. Por favor verifique sua conexão'
}
+16
View File
@@ -0,0 +1,16 @@
import { TestBed } from '@angular/core/testing';
import { RoleIdService } from './role-id.service';
describe('RoleIdService', () => {
let service: RoleIdService;
beforeEach(() => {
TestBed.configureTestingModule({});
service = TestBed.inject(RoleIdService);
});
it('should be created', () => {
expect(service).toBeTruthy();
});
});
+23
View File
@@ -0,0 +1,23 @@
import { Injectable } from '@angular/core';
@Injectable({
providedIn: 'root'
})
export class RoleIdService {
constructor() { }
/**
* @description President role id
*/
PV: number = 100000011
/**
* @description Vice president role id
*/
PRES: number = 100000014
/**
* @description Consultant role id
*/
Consultant: number = 99999872
}