blob: 6900cecb2b1eb288c3b051c3bc9953c46c73d54d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
using Marina.Domain.Interfaces;
namespace Marina.Domain {
public class Dock : IDock {
private readonly long _id;
private readonly string _name;
private readonly ILocation _location;
private readonly IUtility _utility;
public Dock( long id, string name, ILocation location, IUtility utility ) {
_id = id;
_name = name;
_location = location;
_utility = utility;
}
public long ID() {
return _id;
}
public string Name() {
return _name;
}
public ILocation Location() {
return _location;
}
public bool IsUtilityEnabled( IUtility utility ) {
return _utility.IsEnabled( utility );
}
}
}
|