private static void SyncFlow() { var contacts = new ContactExamples(_api); _partner1Id = contacts.CreateContact_ResponseChecking(); _partner2Id = contacts.CreateContact_ExceptionHandling(); contacts.UpdateContact(_partner1Id, "Jan", "Novák"); var select = new SelectExamples(_api); select.List_DefaultGetMethod_ReturnsDefaultModel(); select.List_GetWithGenericType_ReturnsCustomModel(); select.List_GetWithLambda_SpecificType(); select.List_FilteringSortingPaging(); select.List_Filtering_Obsolete(); select.Detail_DefaultGetMethod_ReturnsDefaultModel(_partner1Id); select.Detail_GetWithGenericType_ReturnsCustomModel(_partner1Id); select.Detail_WithLambda_ReturningAnonymousType(_partner1Id); var invoices = new IssuedInvoiceExamples(_api); _priceListItemId = invoices.CreatePriceListItem(); _issuedInvoiceId = invoices.CreateNewInvoice(_partner1Id); (_proformaInvoice1Id, _accountingInvoice1Id) = invoices.AccountProforma_WithIssuedInvoiceDetail(_partner2Id, _priceListItemId); (_proformaInvoice2Id, _accountingInvoice2Id) = invoices.AccountProforma_WithoutIssuedInvoiceDetail(_partner2Id); invoices.UpdateInvoice_AddItemFromPriceList(_issuedInvoiceId, _priceListItemId); invoices.UpdateInvoice_NullableProperties(_issuedInvoiceId); var validation = new ValidationExamples(_api); validation.ValidateOnClient(); }
static void Main(string[] args) { ContainsExamples.ExampleOne(); ContainsExamples.ExampleTwo(); DistinctExamples.ExampleOne(); DistinctExamples.ExampleTwo(); WhereExamples.ExampleOne(); OrderByExamples.ExampleOne(); OrderByExamples.ExampleTwo(); FirstOrDefaultExamples.ExampleOne(); FirstOrDefaultExamples.ExampleTwo(); SelectExamples.ExampleOne(); ExceptExamples.ExampleOne(); ExceptExamples.ExampleTwo(); ExceptExamples.ExampleThree(); }
public void Setup() { _examples = new SelectExamples(); }