Ejemplo n.º 1
0
 public void CreateCustomerDetailsWithDifferentTags_CloseEachGroup()
 {
     CurrentCustomerProvider.Current.CurrentCustomerOid = Alex.Oid;
     using (CustomersList list = (CustomersList)ModulesManager.Current.OpenModuleObjectDetail(new CustomersListObject(Session), false)) {
         using (CurrentCustomerRentsDetail detail = (CurrentCustomerRentsDetail)ModulesManager.Current.OpenModuleObjectDetail(new CurrentCustomerRentsDetailObject(Session), false)) {
             list.ListEdit.CurrentRecord = Anton;
             list.CommandEdit("Anton");
             CustomerDetail currentCustomerDetail = (CustomerDetail)detail.OpenDetail(Alex.Oid, "Alex");
             list.CommandCloseDetails(null);
             Assert.AreNotEqual(0, ModulesManager.Current.GetModulesForType(currentCustomerDetail.GetModuleTypeKey()).Count);
         }
     }
 }