Skip to content

Instantly share code, notes, and snippets.

@amr-swalha
Created March 17, 2018 12:56
Show Gist options
  • Select an option

  • Save amr-swalha/1c12ec4d3e468ca05c3921596f04feb8 to your computer and use it in GitHub Desktop.

Select an option

Save amr-swalha/1c12ec4d3e468ca05c3921596f04feb8 to your computer and use it in GitHub Desktop.
Updating Function Test
public class FunctionTest
{
[Fact]
public void TestToUpperFunction()
{
// Invoke the lambda function and confirm the string was upper cased.
var function = new Function();
var context = new TestLambdaContext();
Student student = new Student
{
Name = "David",
Email = "[email protected]"
};
var upperCase = function.FunctionHandler(student, context);
Assert.Equal($"Name: {student.Name}, Email: {student.Email}", upperCase);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment