FakeItEasyThe simple way to getfakes done                 Akim Khalilov
Agenda  • Why do we need fake objects  • Fake objects – what are they?  • What is FakeItEasy?  • Examples  • More examples...
Why should we use fake objects?Do not use real bullets. Do not hurtanyone.                                       3
Family of fakes                  All depends on usage                                    4
How can we build our fakes?  Hand Rolled Fake Objects      Hard to implement      Can take a lot of time      Hard to s...
Select one of many:It’s a matterof tasteBut not only…                      6
FakeItEasy             7
Created by this man                 https://                 github.com/fakeiteasy  Patrik Hägne   github.com/patrik-hagne...
Start with simple `A`                        9
Asserting            10
Argument Constraints                       11
A Call To Method                   12
A Call To Fake                 13
Assert the order                   14
Anything else?  • https://github.com/fakeiteasy  • http://pluralsight.com/training/Courses/Table    OfContents/fakeiteasy ...
Thank you!  @sstude  http://sstude.com                      16
Upcoming SlideShare
Loading in …5
×

FakeItEasy - The simple way to get fakes done

2,107 views

Published on

This talk is about FakeItEasy - the modern isolation framework with simple API. Details can be found in my post http://sstude.com/blog/2013/02/18/the-simple-way-to-get-fakes-done/

Published in: Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
2,107
On SlideShare
0
From Embeds
0
Number of Embeds
3
Actions
Shares
0
Downloads
13
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

FakeItEasy - The simple way to get fakes done

  1. 1. FakeItEasyThe simple way to getfakes done Akim Khalilov
  2. 2. Agenda • Why do we need fake objects • Fake objects – what are they? • What is FakeItEasy? • Examples • More examples 2
  3. 3. Why should we use fake objects?Do not use real bullets. Do not hurtanyone. 3
  4. 4. Family of fakes All depends on usage 4
  5. 5. How can we build our fakes? Hand Rolled Fake Objects  Hard to implement  Can take a lot of time  Hard to support Existing frameworks  Easy to start  Easy to build things  Easy to write  Easy to maintain 5
  6. 6. Select one of many:It’s a matterof tasteBut not only… 6
  7. 7. FakeItEasy 7
  8. 8. Created by this man https:// github.com/fakeiteasy Patrik Hägne github.com/patrik-hagne twitter.com/patrik_hagne Sweden 8
  9. 9. Start with simple `A` 9
  10. 10. Asserting 10
  11. 11. Argument Constraints 11
  12. 12. A Call To Method 12
  13. 13. A Call To Fake 13
  14. 14. Assert the order 14
  15. 15. Anything else? • https://github.com/fakeiteasy • http://pluralsight.com/training/Courses/Table OfContents/fakeiteasy • http://ondevelopment.blogspot.com/ 15
  16. 16. Thank you! @sstude http://sstude.com 16

×