-
Notifications
You must be signed in to change notification settings - Fork 21
Expand file tree
/
Copy pathTempDataResultTest.cs
More file actions
33 lines (28 loc) · 925 Bytes
/
TempDataResultTest.cs
File metadata and controls
33 lines (28 loc) · 925 Bytes
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 System;
using System.Web.Mvc;
namespace TestStack.FluentMVCTesting
{
public class TempDataResultTest
{
private readonly ControllerBase _controller;
public TempDataResultTest(ControllerBase controller)
{
_controller = controller;
}
public TempDataResultTest AndShouldHaveTempDataProperty(string key, object value = null)
{
_controller.ShouldHaveTempDataProperty(key, value);
return this;
}
public TempDataResultTest AndShouldHaveTempDataProperty<TValue>(string key, Func<TValue, bool> predicate)
{
_controller.ShouldHaveTempDataProperty(key, predicate);
return this;
}
public TempDataResultTest AndShouldNotHaveTempDataProperty(string empty)
{
_controller.ShouldNotHaveTempDataProperty(empty);
return this;
}
}
}