Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Mauritz, Falk Marius
SWTII Cal
Commits
2753b0a5
Commit
2753b0a5
authored
Jun 11, 2019
by
HellLab
Browse files
model tests
parent
c08a79b9
Pipeline
#6503
passed with stage
in 6 minutes and 34 seconds
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
frontend/lib/src/model/appointment.dart
View file @
2753b0a5
...
...
@@ -52,12 +52,18 @@ class Appointment {
return
"
$year
-
$month
-
$day
"
;
}
bool
equals
(
Appointment
app
){
return
toString
()
==
app
.
toString
();
bool
equals
(
Appointment
app
)
{
return
id
==
app
.
id
&&
year
==
app
.
year
&&
month
==
app
.
month
&&
day
==
app
.
day
&&
name
==
app
.
name
&&
time
==
app
.
time
&&
duration
==
app
.
duration
&&
location
==
app
.
location
;
}
String
toString
(){
String
toString
()
{
return
"ID:
$id
Name:
$name
Date:
$date
Time:
$time
Duration:
$duration
Location:
$location
Note:
$note
"
;
}
}
frontend/lib/src/view/services/appointment_service.dart
View file @
2753b0a5
...
...
@@ -2,7 +2,7 @@
import
'dart:async'
;
import
'dart:convert'
;
import
'dart:html'
;
import
'package:demo/src/view/main_component.dart'
;
import
'package:http/http.dart'
;
...
...
frontend/pubspec.yaml
View file @
2753b0a5
...
...
@@ -18,3 +18,4 @@ dependencies:
build_web_compilers
:
^1.0.0
pedantic
:
^1.0.0
analyzer
:
^0.34.3
test
:
^1.5.0
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment