コード例 #1
0
ファイル: SrviceTest.cs プロジェクト: rahman-vali/Valiasr
 public void AddAccountTest(Guid id)
 {
     AccountDto accountDto = new AccountDto();
           accountDto.Code = "2/0/0";
           accountDto.Balance = 10000;
           accountDto.Description = "bank melli 213";
           accountDto.IndexAccountId = id;
           accountDto.IndexAccountCode = "2/0";
           accountDto.RowId = 0;
           accountDto.No = "120000";
           PersonAccountService pa = new PersonAccountService();
           string str = pa.AddAccount(accountDto);
 }
コード例 #2
0
ファイル: SrviceTest.cs プロジェクト: rahman-vali/Valiasr
 public string getsimpleBankAccount()
 {
     PersonAccountService ps = new PersonAccountService();
     SimpleAccountDto simpleAccountDto = ps.GetSimpleBankAccount("0/0/0");
     return simpleAccountDto != null ? simpleAccountDto.Description : "0";
 }
コード例 #3
0
ファイル: SrviceTest.cs プロジェクト: rahman-vali/Valiasr
 public void GetPersonTest()
 {
     PersonAccountService pa = new PersonAccountService();
       PersonDto personDto = pa.GetPersonByNationalIdentity("198598");
       var a = personDto.NationalIdentity;
 }
コード例 #4
0
ファイル: SrviceTest.cs プロジェクト: rahman-vali/Valiasr
 public object getPersonByNationalIdentity()
 {
     PersonAccountService personAccountService = new PersonAccountService();
     PersonDto personDto = personAccountService.GetPersonByNationalIdentity("1");
     return null;
 }
コード例 #5
0
ファイル: SrviceTest.cs プロジェクト: rahman-vali/Valiasr
        public object GetPersonByAccountTest()
        {
            //            AccountRepository repository = new AccountRepository();
            //            Account account = repository.ActiveContext.Accounts.Include("Lawyers.Person").Include("Customers.Person").FirstOrDefault(a => a.Code == "1/0/0");
            //            var firstnames = account.Lawyers.Select(o => o.Person.Firstname).Union(account.Customers.Select(a => a.Person.Firstname)).ToList();
            PersonAccountService personAccountService = new PersonAccountService();
            List<PersonDto> list = personAccountService.GetPersonByAccount("1/0/0");

            return null;
        }
コード例 #6
0
ファイル: SrviceTest.cs プロジェクト: rahman-vali/Valiasr
 public void GetIndexAccountTest()
 {
     PersonAccountService pa = new PersonAccountService();
     IndexAccountDto indexAccountDto = pa.GetIndexAccount("1/0");
     var a = indexAccountDto.Description;
 }
コード例 #7
0
ファイル: SrviceTest.cs プロジェクト: rahman-vali/Valiasr
 public void AddPersonTest()
 {
     PersonDto personDto = new PersonDto();
     personDto.HeadNationalIdentity = "12451";
     //personDto.Id = Guid.NewGuid();
        // personDto.CustomerId = 10;
     personDto.Firstname = "ali1";
     personDto.FatherName = "ahmad1";
     personDto.Lastname = "rezai1";
     personDto.ShobehCode = 11;
     personDto.HomeAddress = "babol1";
     personDto.HomeTelno = "145789+";
     personDto.NationalIdentity = "56457611";
     PersonAccountService pa = new PersonAccountService();
     string str = pa.AddPerson(personDto);
 }
コード例 #8
0
ファイル: SrviceTest.cs プロジェクト: rahman-vali/Valiasr
 public string AddCustomerToAccount(Guid accountId, Guid id)
 {
     CustomerDto customerDto = new CustomerDto();
       customerDto.PersonId = id;
       customerDto.No = "4";
       customerDto.Portion = 1;
       PersonAccountService personAccountService = new PersonAccountService();
       personAccountService.AddCustomerToAccount(accountId, customerDto);
       return "completed";
 }
コード例 #9
0
ファイル: SrviceTest.cs プロジェクト: rahman-vali/Valiasr
 public string gerpersonsbyaccount()
 {
     PersonAccountService ps = new PersonAccountService();
     List<PersonDto> personDtos = ps.GetPersonByAccount("1/0/0");
     return "yes";
 }
コード例 #10
0
ファイル: SrviceTest.cs プロジェクト: rahman-vali/Valiasr
 public void Creat_RequestOkyAss(Guid id)
 {
     PersonAccountService ps = new PersonAccountService();
     LoanRequestOkyDto loanRequestOkyDto = new LoanRequestOkyDto();
     loanRequestOkyDto.ReqNo = 1;
     loanRequestOkyDto.OKyDate = 13911032;
     loanRequestOkyDto.OkyAss = "moavenreis";
     string str = ps.AddOrUpdateLoanRequestOkyAssistant(id ,loanRequestOkyDto);
 }
コード例 #11
0
ファイル: SrviceTest.cs プロジェクト: rahman-vali/Valiasr
 public void Creat_RequestAve(Guid id)
 {
     PersonAccountService ps = new PersonAccountService();
     RequestAccountAveDto requestAccountAveDto = new RequestAccountAveDto{AccountCode = "2/0/0" ,AverageId = 1 ,AverageQty = 90 ,ConsumedQty = 80,DebtQty = 70,fromDate = 911008,LastBalance = 68,LastDate = 0,ReqNo = 1,Id = Guid.NewGuid()};
     string str = ps.AddRequestAccountAve(id, requestAccountAveDto);
 }
コード例 #12
0
ファイル: SrviceTest.cs プロジェクト: rahman-vali/Valiasr
 public void Creat_Request()
 {
     LoanRequestDto loanRequestDto = new LoanRequestDto {Id = Guid.NewGuid() , AccountCode = "1/0/0",Amount = 1000,Date = 13911102,Description = "vam" };
     PersonAccountService ps = new PersonAccountService();
     string str = ps.AddLoanRequest(loanRequestDto);
 }
コード例 #13
0
ファイル: SrviceTest.cs プロジェクト: rahman-vali/Valiasr
 public int AddPersonTest2()
 {
     PersonAccountService pa = new PersonAccountService();
     PersonDto personDto = new PersonDto
         {
             BirthDate = 13910102,
             CretyId = "1",
             CretySerial = "2",
             FatherName = "ahmad",
             Firstname = "ali",
             HomeAddress = "babol",
             NationalIdentity = "1",
             HomeTelno = "1245",
             HeadNationalIdentity = "2"
         };
     pa.AddPerson(personDto);
     return 100;
 }
コード例 #14
0
ファイル: SrviceTest.cs プロジェクト: rahman-vali/Valiasr
 public void AddPersonTest1(Guid id)
 {
     PersonDto personDto = new PersonDto();
       personDto.HeadNationalIdentity = "1245";
       personDto.Id = id;
       personDto.CustomerId = 10;
       personDto.Firstname = "ali";
       personDto.FatherName = "ahmad";
       personDto.Lastname = "rezai";
       personDto.ShobehCode = 1;
       personDto.HomeAddress = "babol";
       personDto.HomeTelno = "145789+";
       personDto.NationalIdentity = "198598";
       PersonAccountService pa = new PersonAccountService();
       string str = pa.AddPerson(personDto);
 }
コード例 #15
0
ファイル: SrviceTest.cs プロジェクト: rahman-vali/Valiasr
 public void removePerson(Guid id)
 {
     PersonAccountService personAccountService = new PersonAccountService();
     string str = personAccountService.RemovePerson(id);
 }
コード例 #16
0
ファイル: SrviceTest.cs プロジェクト: rahman-vali/Valiasr
 public void GetAccountTest()
 {
     PersonAccountService ps = new PersonAccountService();
     AccountDto accountDto = ps.GetAccount("1/0/0");
     var a = accountDto.RowId;
 }
コード例 #17
0
ファイル: SrviceTest.cs プロジェクト: rahman-vali/Valiasr
 public void GetGeneraAccountTest()
 {
     PersonAccountService pa = new PersonAccountService();
       GeneralAccountDto generalAccountDto = pa.GetGeneralAccount(1);
       var a = generalAccountDto.Description;
 }
コード例 #18
0
ファイル: SrviceTest.cs プロジェクト: rahman-vali/Valiasr
 public void AddGeneralAccountTest()
 {
     GeneralAccountDto generalAccountDto = new GeneralAccountDto();
           generalAccountDto.Category = 1;
           generalAccountDto.Code = 7;
           generalAccountDto.Description = "bank";
           PersonAccountService pa = new PersonAccountService();
       pa.AddGeneralAccount(generalAccountDto);
        //   GeneralAccountRepository repository = new GeneralAccountRepository();
      //      Assert.True(repository.ActiveContext.GeneralAccounts.Where(ga => ga.Code == 15).Count() == 1);
 }
コード例 #19
0
ファイル: SrviceTest.cs プロジェクト: rahman-vali/Valiasr
 public void AddIndexAccountTest(Guid id)
 {
     IndexAccountDto indexAccountDto = new IndexAccountDto();
           indexAccountDto.Code = "2/0";
           indexAccountDto.Description = "Bank mell";
           indexAccountDto.HaveAccounts = true;
           indexAccountDto.GeneralAccountCode = 4;
           indexAccountDto.RowId = 0;
           indexAccountDto.GeneralAccountId = id;
           PersonAccountService pa = new PersonAccountService();
           string str = pa.AddIndexAccount(indexAccountDto);
 }