You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

65 lines
1.1 KiB

  1. using System;
  2. using System.Threading.Tasks;
  3. using DotNetCore.CAP.Models;
  4. using Newtonsoft.Json;
  5. using Xunit;
  6. namespace DotNetCore.CAP.Test
  7. {
  8. public class Sample
  9. {
  10. public void DateTimeParam(DateTime dateTime)
  11. {
  12. }
  13. public void StringParam(string @string)
  14. {
  15. }
  16. public void GuidParam(Guid guid)
  17. {
  18. }
  19. public void UriParam(Uri uri)
  20. {
  21. }
  22. public void IntegerParam(int @int)
  23. {
  24. }
  25. public void ComplexTypeParam(ComplexType complexType)
  26. {
  27. }
  28. public void ThrowException()
  29. {
  30. throw new Exception();
  31. }
  32. public async Task<int> AsyncMethod()
  33. {
  34. await Task.FromResult(3);
  35. throw new Exception();
  36. }
  37. }
  38. public class ComplexType
  39. {
  40. public DateTime Time { get; set; }
  41. public string String { get; set; }
  42. public Guid Guid { get; set; }
  43. public Person Person { get; set; }
  44. }
  45. public class Person
  46. {
  47. public int Age { get; set; }
  48. public string Name { get; set; }
  49. }
  50. }