Created
April 6, 2018 13:50
-
-
Save michaelbudnik/33f3dd39df038ba1d02f01dc9659002b to your computer and use it in GitHub Desktop.
Expression vs Func compile time error
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<packages> | |
<package id="FakeItEasy" version="4.5.1" targetFramework="net461" /> | |
<package id="Mandrill" version="2.4.1.0" targetFramework="net461" /> | |
<package id="Newtonsoft.Json" version="6.0.6" targetFramework="net461" /> | |
</packages> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using FakeItEasy; | |
using Mandrill; | |
using Mandrill.Requests.Messages; | |
namespace ConsoleApp2 | |
{ | |
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
var mandrill = A.Fake<IMandrillApi>(); | |
A.CallTo(() => mandrill.SendMessageTemplate(A<SendMessageTemplateRequest>.That.Matches( | |
x => x.Message.GlobalMergeVars[0].Content == 0, "testing"))).MustHaveHappened(); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment