daily pastebin goal
8%
SHARE
TWEET

Untitled

a guest Dec 10th, 2018 59 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. [Test]
  2. public void Can_Submit_Contact_Email_With_A_Valid_Message()
  3. {
  4.     var mockSubmitter = A.Fake<IContactSubmitter>();
  5.     var controller = new ContactController(mockSubmitter);
  6.  
  7.     controller.Contact("some message");
  8.  
  9.     A.CallTo(() => mockSubmitter.SubmitContact("some message"))
  10.             .MustHaveHappened(Repeated.Once.Exactly);
  11. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top