root/trunk/Wierszowki/Wierszowki.Tests/TestUserService.cs @ 752

Wersja 752, 1.5 KB (wprowadzona przez marek, 17 years temu)

wiersz

Line 
1using System;
2using System.Collections.Generic;
3using System.Linq.Expressions;
4using System.Threading;
5using Wierszowki.Core.Linq;
6using Wierszowki.Services.Interfaces;
7using xVal.ServerSide;
8
9namespace Wierszowki.Tests
10{
11    public class TestUserService : IUserService
12    {
13
14        public bool ShouldThrowValidationException { get; set; }
15        readonly ErrorInfo _errorInfo = new ErrorInfo("LastName", "Test");
16
17        public bool LoginUser(string login, string password)
18        {
19            throw new NotImplementedException();
20        }
21
22        public void Create(User user)
23        {
24            var errorInfos = new List<ErrorInfo> {_errorInfo};
25            if (ShouldThrowValidationException)
26                throw new RulesException(errorInfos);
27        }
28
29        public void Update(User user)
30        {
31            throw new NotImplementedException();
32        }
33
34        public void Delete(User user)
35        {
36            throw new NotImplementedException();
37        }
38
39        public User Find(int id)
40        {
41            throw new NotImplementedException();
42        }
43
44        public User FindOne(int id)
45        {
46            throw new NotImplementedException();
47        }
48
49        public User FindOne(Expression<Func<User, bool>> expression)
50        {
51            throw new NotImplementedException();
52        }
53
54        public IList<User> FindAll()
55        {
56            throw new NotImplementedException();
57        }
58    }
59}
Notatka: Zobacz TracBrowser aby uzyskać więcej informacji.