You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have [pointed here](http://blogs.hibernatingrhinos.com/nhibernate/archive/2008/10/08/the-repository-pattern.aspx) several times before – but it’s so nice.
Pattern](http://martinfowler.com/eaaCatalog/repository.html) using
23
-
generics, that will minimize your code in a very nice way. I am sure
24
-
that the FindAll can be refined into something very nice with
25
-
[LINQ](http://msdn.microsoft.com/en-us/library/bb308959.aspx), that
26
-
allows you to send a specification criteria or so.
17
+
It’s an [implementation](http://blogs.hibernatingrhinos.com/nhibernate/archive/2008/10/08/the-repository-pattern.aspx) of the [Repository Pattern](http://martinfowler.com/eaaCatalog/repository.html) using generics, that will minimize your code in a very nice way. I am sure that the FindAll can be refined into something very nice with [LINQ](http://msdn.microsoft.com/en-us/library/bb308959.aspx), that allows you to send a specification criteria or so.
27
18
28
-
Here is my implementation that uses a common interface (IBaseEntity) for
29
-
all my entities. It basically has an ID, so that the abstract
30
-
implementation can use it as a key:
19
+
Here is my implementation that uses a common interface (IBaseEntity) for all my entities. It basically has an ID, so that the abstract implementation can use it as a key:
Copy file name to clipboardExpand all lines: _posts/2012-05-16-specflow-page-objects-and.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -157,7 +157,7 @@ I’ve created a small class with static methods that I use to perform database
157
157
158
158
SpecFlow gives you a number of [events and hooks](https://www.marcusoft.net/2010/12/using-tags-in-specflow-features.html) that you can use to perform task that you want to run before and after tests. In this case I’m:
159
159
160
-
- Cleaning out the testdata I’ve used and change after each scenario
160
+
- Cleaning out the test data I’ve used and change after each scenario
161
161
- Closing the browser after each test run. You DO want to do this or you’ll have 50+ browser instances open pretty quickly.
0 commit comments