public ArrModel() { ArrWeapon = new ArrWeapon(); RelicModel = new RelicModel(); AtmaModel = new AtmaModel(); AnimusModel = new AnimusModel(); NovusModel = new NovusModel(); NexusModel = new NexusModel(); BravesModel = new BravesModel(); ZetaModel = new ZetaModel(); }
public void CreateAndDeleteNexus() { var nexusModels = new List <NexusModel>(); var stateNexus = new NexusModel { id = 0, companyId = TestCompany.id, country = "US", region = "AL", jurisTypeId = JurisTypeId.STA, jurisCode = "01", jurisName = "ALABAMA", shortName = "AL", signatureCode = "", stateAssignedNo = "", nexusTypeId = NexusTypeId.SalesOrSellersUseTax, hasLocalNexus = true, hasPermanentEstablishment = true, effectiveDate = new DateTime(2008, 07, 01), endDate = new DateTime(2019, 07, 01) }; var cityNexus = new NexusModel { id = 0, companyId = TestCompany.id, country = "US", region = "AL", jurisTypeId = JurisTypeId.CIT, jurisCode = "00124", jurisName = "ABBEVILLE", shortName = "ABBEVILLE", signatureCode = "", stateAssignedNo = "9356", nexusTypeId = NexusTypeId.SalesTax, hasLocalNexus = true, hasPermanentEstablishment = false, effectiveDate = new DateTime(2008, 07, 01), endDate = new DateTime(2018, 07, 01) }; nexusModels.Add(stateNexus); nexusModels.Add(cityNexus); var nexusModelsAdded = Client.CreateNexus(TestCompany.id, new List <NexusModel> { stateNexus, cityNexus }); // Get State nexus NexusModel getALNexus = null; try { getALNexus = Client.GetNexus(TestCompany.id, nexusModelsAdded[0].id); } catch (Exception) { } Assert.NotNull(getALNexus); var fetchedUSNexus = new List <NexusModel> { getALNexus }; // Get City Nexus NexusModel getCityNexus = null; try { getCityNexus = Client.GetNexus(TestCompany.id, nexusModelsAdded[1].id); } catch (Exception) { } Assert.NotNull(getALNexus); fetchedUSNexus.Add(getCityNexus); // Delete Nexus var errorResult = Client.DeleteNexus(TestCompany.id, nexusModelsAdded[1].id); Assert.NotNull(errorResult); }