public PersonalAccountController(UserManager <User> _userManager, IAdress adress, IAllOrders allOrders, AppDBContent appDBContent) { userManager = _userManager; _adress = adress; _allOrders = allOrders; _appDBContent = appDBContent; }
public Item(string error) { PostNumber post = new PostNumber(0000, "ErrorTwon"); _adress = new Adress("error", ref post); _person = new Person("error", "Error", "", "", _adress); }
public OrderController(IAllOrders allOrders, IAdress adress, ShopBasket shopBasket, UserManager <User> _userManager, IServiceProvider service) { _allOrders = allOrders; _shopBasket = shopBasket; _adress = adress; _service = service; userManager = _userManager; }
public LegalEntityInformation(IAdress adress, IContactInforamtion contactInforamtion, string name, string aboutLegalEntity) { Adress = adress; ContactInforamtion = contactInforamtion; NameLegalEntity = name; AboutLegalEntity = aboutLegalEntity; }
public static string GetPostnumberForAdresse(IAdress adress) { foreach (var variable in _postList) { if (variable.Adress == adress) { return(variable.PostNumber.Postnumber.ToString()); } } return("error"); }
static void Main(string[] args) { Customer c1 = new Customer("5551111717", "Hakan Alakus", "Ex", "Halkalı Merkez mah 5.sokak", "Turkey", "Istanbul", "İkitelli"); CustomerBillingAdressAdapter adapter = new CustomerBillingAdressAdapter(c1); IAdress adress = adapter; Console.WriteLine(adress.GetCity()); Console.WriteLine(adress.GetCountry()); Console.WriteLine(adress.GetAdress()); Console.ReadLine(); }
public static List <Item> GetAllAdresseOccupant(IAdress adress) { List <Item> retunlist = new List <Item>(); foreach (var variable in JoinList) { if (variable.Adress == adress) { retunlist.Add(variable); } } return(retunlist); }
static void Main(string[] args) { Factory1 factory = new VNFactory(); IAdress address = factory.createAddress(); IPhone phone = factory.createPhone(); Console.WriteLine("Create Object by VNFactory"); address.Show(); phone.Show(); factory = new USFactory(); address = factory.createAddress(); phone = factory.createPhone(); Console.WriteLine("Create Object by USFactory"); address.Show(); phone.Show(); Console.ReadKey(); }
public Item(ref IAdress adress, ref Person person, string type) { _adress = adress; _person = person; Type = type; }
public AdressController(IAdress adress) { _adressServices = adress; }
static void Main(string[] args) { try { var fileLog = ConfigurationManager.AppSettings["FileLog"]; var log = new ProgramLog(fileLog); } catch (DirectoryNotFoundException) { var exception = new ConfigurationDirectoryNotFoundException(ConfigurationManager.AppSettings["FileLog"]); Console.WriteLine(exception.Message); throw exception; } IAdress vasinAdress = ContactAddressInformation.CreateNewAdress("Belarus", "Grodno", "Kleckova", new Tuple <int, char, char>(12, '/', 'A'), 3); IList <int> vasinListNumbers = new List <int>(); vasinListNumbers.Add(654321); vasinListNumbers.Add(543210); IList <string> vasinListEmails = new List <string>(); vasinListEmails.Add("*****@*****.**"); vasinListEmails.Add("*****@*****.**"); IContactInforamtion vasinaContactInforamtion = ContactAddressInformation.CreateNewContacts(vasinListNumbers, vasinListEmails); IFullName vasyasFullName = PersonalIdentification.CreateNewFullName("Vasya", "Pupkin", "Ivanavich"); IPassportIdentification passportIdentification = PersonalIdentification.CreateNewPassportIdentification( vasyasFullName, "REPUBLIC OF BELARUS", new DateTime(1997, 10, 28), true, "3456797K000PB9", "REPUBLIC OF BELARUS"); IPassportData passportData = PersonalIdentification.CreateNewPassportData(passportIdentification, "KH248248", "MINISTRY OF INTERNAL AFFAIRS", new DateTime(2015, 10, 28), new DateTime(2025, 10, 28)); IInformationOfAnIndividual informationOfVasya = InformationProvided.CreateNewInformationOfAnIndividual(vasinAdress, vasinaContactInforamtion, passportData); Console.WriteLine(informationOfVasya.ToString()); // IBillingCompany billingCompany = CompanyManagement.CreateNewCompany("Company"); IAdress billingCompanyAdress = ContactAddressInformation.CreateNewAdress("Belarus", "Grodno", "Kleckova", new Tuple <int, char, char>(10, '/', '2'), 3); CompanyManagement.ChangeAdress(billingCompany, billingCompanyAdress); IList <int> companyListNumbers = new List <int>(); vasinListNumbers.Add(123456); vasinListNumbers.Add(234567); IList <string> companyListEmails = new List <string>(); vasinListEmails.Add("*****@*****.**"); vasinListEmails.Add("*****@*****.**"); IContactInforamtion companyContactInforamtion = ContactAddressInformation.CreateNewContacts(companyListNumbers, companyListEmails); CompanyManagement.ChangeContactInforamtion(billingCompany, companyContactInforamtion); CompanyManagement.ChangeAboutLegalEntity(billingCompany, "Some company"); StationManagment.CreateNewStation(billingCompany, CodecType.G711); try { StationManagment.AddPortRange(billingCompany.Stations[0], 2030, 2110); } catch (PortArgumentOutOfRangeException e) { Console.WriteLine(e.Message); } Console.WriteLine(StationManagment.OutputAllPorts(billingCompany.Stations[0])); IClient client = ContractManagement.CreateNewClient(informationOfVasya); IRate rate = ContractManagement.CreateNewRate("Tarif", 0.5); ISubscriberNumber subscriberNumber1 = ContractManagement.CreateNewSubscriberNumber(rate, 505050); ISubscriberNumber subscriberNumber2 = ContractManagement.CreateNewSubscriberNumber(rate, 525252); ContractManagement.MakeNewTerminalContract(billingCompany, client, subscriberNumber1); ContractManagement.MakeNewTerminalContract(billingCompany, client, subscriberNumber2); TerminalManagement.ConnectTerminal(billingCompany.Stations[0], client.Contracts[0].Terminal, 2030); Thread.Sleep(200); TerminalManagement.ConnectTerminal(billingCompany.Stations[0], client.Contracts[1].Terminal, 2100); Thread.Sleep(200); TerminalManagement.CallToSubscriber(billingCompany.Stations[0], client.Contracts[0].Terminal, client.Contracts[1].Terminal); Thread.Sleep(200); TerminalManagement.AnswerTheCall(billingCompany.Stations[0], client.Contracts[0].Terminal, client.Contracts[1].Terminal); Thread.Sleep(1200); TerminalManagement.CompleteCall(billingCompany.Stations[0], client.Contracts[0].Terminal, client.Contracts[1].Terminal); Thread.Sleep(200); TerminalManagement.DisconnectTerminal(billingCompany.Stations[0], client.Contracts[0].Terminal); Thread.Sleep(200); TerminalManagement.DisconnectTerminal(billingCompany.Stations[0], client.Contracts[1].Terminal); try { Console.WriteLine(CallManagement.ViewCallLog(client.Contracts[0].Terminal.SubscriberNumber, 30)); } catch (CallLogArgumentException e) { Console.WriteLine(e.Message); } }
public PostItem(ref Adress adress, ref PostNumber post) { _adress = adress; _postNumber = post; }
public static void ChangeAdress(IBillingCompany billingCompany, IAdress adress) { billingCompany.LegalEntityInformation.Adress = adress; }
public static IInformationOfAnIndividual CreateNewInformationOfAnIndividual(IAdress adress, IContactInforamtion contactInforamtion, IPassportData passportData) { return(new InformationOfAnIndividual(adress, contactInforamtion, passportData)); }
public static ILegalEntityInformation CreateNewLegalEntityInformation(string name, string about, IAdress adress, IContactInforamtion contactInforamtion) { return(new LegalEntityInformation(adress, contactInforamtion, name, about)); }
public Person(string fornavn, string mellemnavn, string eftermnavn, string type, IAdress contacktAdress) { Fornavn = fornavn; Mellemnavn = mellemnavn; Eftermnavn = eftermnavn; Type = type; var person = this; PrimAdress = new Item(ref contacktAdress, ref person, "Prim"); }
public void AddAlternativeAdress(ref IAdress Adress, string type) { var person = this; JoinPersonAdress.AddEntry(new Item(ref Adress, ref person, type)); }
public InformationOfAnIndividual(IAdress adress, IContactInforamtion contactInforamtion, IPassportData passportData) { Adress = adress; ContactInforamtion = contactInforamtion; PassportData = passportData; }