locked
How to write stubs and shims test case for this method? RRS feed

  • Question

  • protected void Page_Load(object sender, EventArgs e) {
                if (!IsPostBack) {
                    softtechno.Master ThisMaster = (softtechno.Master)this.Page.Master;
                    CommonCssPath = ThisMaster.CommonCssPath;
                    CommonJsPath = ThisMaster.CommonJsPath;
                    ModuleData ModuleDataObj = ModuleData.GetModuleData();
                    if (!string.IsNullOrEmpty(ModuleDataObj.ModuleTitle)) {
                        ModuleTitle = ModuleDataObj.ModuleTitle;
                    }
                    AddCssFiles(CommonCssPath + "sunrise.css");
                    PageNumber = 1;
                    TotalRecords = 0;
                    List<gaint.Contracts.ModuleActions> lstModuleActions = BLL_tech.GetOneModuleActions(Convert.ToInt64(ModuleDataObj.ModuleId), ModuleDataObj.PageId, ModuleDataObj.techId);
                    if (lstModuleActions != null) {
                        if (lstModuleActions.Count > 0) {
                            SetSettings(lstModuleActions[0].Settings);
                            if (lstModuleActions[0].SessionXML != null) {
                                loginIds = Utility.GetloginIds(lstModuleActions[0].loginXML);
                            }
                        }
                    }
                    
    Friday, April 12, 2013 10:43 AM

All replies

  • Hi,

    I am trying to involve someone familiar with this topic to further look at this issue. There might be some time delay. Appreciate your patience.

    Best regards,


    Amanda Zhu [MSFT]
    MSDN Community Support | Feedback to us
    Develop and promote your apps in Windows Store
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    Monday, April 15, 2013 1:57 AM