Example #1
0
        public void CREATE()
        {
            // Arrange
            var getParty  = PartyResource.Show(187341289);
            var milestone = MilestoneResource.List();

            var opp = Opportunity.Create(nestedParty: getParty,
                                         name: $"Integration Test - {DateTime.Now.ToString("yyyyMMddHHmmss")}",
                                         nestedMilestone: milestone.Milestones.FirstOrDefault());

            // Act
            var createResponse = OpportunityResource.Create(opp);

            // Assert
            Assert.True(createResponse.Id > 0);
        }