Guest User

Untitled

a guest
Jul 22nd, 2018
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. public class MyFixture
  2. {
  3. private readonly ICloseLogFileCommand _closeCommand = Substitute.For<ICloseLogFileCommand>();
  4.  
  5. private readonly ILog _log = Substitute.For<ILog>();
  6.  
  7. public MyFixture()
  8. {
  9. _log.Name.Returns(@"C:\Path\To\File.log");
  10. _log.Count.Returns(42);
  11. _log.Offset.Returns(TimeSpan.FromSeconds(69));
  12. }
  13. ...
  14. }
Add Comment
Please, Sign In to add comment