Пример #1
0
 private void TheWebhooksShouldBeEqual(Webhook expected, Webhook actual)
 {
     expected.ShouldNotBeNull();
     expected.ShouldSatisfyAllConditions(
         () => expected.Id.ShouldBe(actual.Id),
         () => expected.Name.ShouldBe(actual.Name),
         () => expected.TargetUrl.ShouldBe(actual.TargetUrl),
         () => expected.Resource.ShouldBe(actual.Resource),
         () => expected.Event.ShouldBe(actual.Event),
         () => expected.Filter.ShouldBe(actual.Filter),
         () => expected.OrgId.ShouldBe(actual.OrgId),
         () => expected.CreatedBy.ShouldBe(actual.CreatedBy),
         () => expected.AppId.ShouldBe(actual.AppId),
         () => expected.OwnedBy.ShouldBe(actual.OwnedBy),
         () => expected.Status.ShouldBe(actual.Status),
         () => expected.Secret.ShouldBe(actual.Secret),
         () => expected.Created.ShouldBe(actual.Created)
         );
 }