16,012,153 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View .NET questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
Comments by amritbdk (Top 8 by date)
amritbdk
3-Mar-14 4:30am
View
Hi Pls find my code bellow.I hve used several assert method pls guide me which one i will use
[TestMethod]
public void SaveUpdateAboutTest()
{
AboutConcept concept = new AboutConcept();
ResponseMessage currentresult;
int expected = 0;
int actual;
using (ShimsContext.Create())
{
concept.BrandId = 1;
concept.ConceptId = 1;
concept.ConceptHow.ConceptId = 1;
concept.ConceptHow.Formula = "nice";
concept.ConceptHow.Manufaturing = "nice";
concept.ConceptHow.Package = "good";
concept.ConceptHow.PromotionalElementsValue = "2";
concept.ConceptHow.SecondaryPackagingValue = "1";
// ShimDateTime.NowGet = () => new DateTime(2012, 12, 31);
concept.ConceptInfo.ConceptCreateDate = DateTime.Now;
concept.ConceptInfo.ConceptId = 1;
concept.ConceptInfo.ConceptInitiator = "gg";
concept.ConceptInfo.InnovationType = "gd";
concept.ConceptInfo.PrivacyLevel = "strng";
concept.ConceptInfo.ProductLaunchStream = "vv";
concept.ConceptInfo.TechnologyPlatform = ".net";
concept.ConceptWhat.BenefitBasedPlatformId = 1;
concept.ConceptWhat.ConceptDescription = "gd";
concept.ConceptWhat.ConceptId = 1;
concept.ConceptWhat.ConceptName = "ap";
var obj = new List<decimal>();
concept.ConceptWhat.CorporateInnovationPlatFromIds = obj;
var obj22 = new Nullable<decimal>();
concept.ConceptWhat.Form = obj22;
concept.ConceptWhat.Holiday = 5;
concept.ConceptWhat.HolidayName = "sun";
concept.ConceptWhat.MbcId = 3;
concept.ConceptWhat.StrCrptPltInnIds = "1";
concept.ConceptWhat.SubCategoryId = 1;
concept.ConceptWhen.ConceptId = 1;
concept.ConceptWhen.ProgramAporovalDueDate = DateTime.Now;
concept.ConceptWhen.TargetOncounterDate = DateTime.Now;
concept.ConceptWhere.Comment = "gud";
concept.ConceptWhere.ConceptId = 1;
concept.ConceptWhere.DistributionChannels = obj;
concept.ConceptWhere.DstrChnlCommaSeperated = "y";
concept.ConceptWhere.LocallyInpired = 1;
concept.ConceptWhere.QualifyDistributionChannel = "y";
concept.ConceptWhere.Regions = obj;
concept.ConceptWhere.RegionsCommaSeparated = "y";
concept.ConceptWho.Age = "";
concept.ConceptWho.CompetitiveBenchmark = "y";
concept.ConceptWho.ConceptId = 1;
var i = new List<int>();
concept.ConceptWho.MarketObjectiveIds = i;
concept.ConceptWho.PricingStrategy = "gd";
concept.ConceptWho.Income = "nice";
concept.ConceptWho.MarketObjectiveIds = i;
concept.ConceptWho.PricingStrategy = "aa";
concept.ConceptWho.Sex = 1;
concept.ConceptWho.SourceofSalesVolumeIds = obj;
concept.ConceptWho.StrMarketObjectiveIds = "1";
concept.ConceptWho.StrsourceofSalesVolumeIds = "1";
concept.ConceptWho.TargetCustomer = "1";
concept.ConceptWho.TargetMarketSize = 1;
concept.ConceptWho.TargetMrktOpportunity = "";
concept.ConceptWhy.BrandStrategyId = 1;
concept.ConceptWhy.ConceptId = 1;
concept.ConceptWhy.CrptStrategyCategoryId = "p";
concept.ConceptWhy.ProductCompetitiveAdv = "p";
currentresult = AboutBal.SaveUpdateAbout(concept);
// bool bb = false;
}
// Assert.AreEqual(currentresult.payload,expected);
//Assert.AreEqual<responsemessage>(null, currentresult.payload., "Insert Failed");
//Assert.AreEqual<responsemessage>(message,currentresult.payload);
Assert.AreEqual
amritbdk
13-Feb-14 7:43am
View
function SaveStrategy() {
var priority = 0;
this.disabled = true;
var Strategyid = $('#lblHiddenfield').val();
$('#tblGridAnalyze').trigger("reloadGrid");
var SFC = "";
$('input[name="multiselect_SltFiscalYear"]:checked').each(function () {
SFC += this.value + ";";
});
var sfcdetails = SFC.replace(/;\s*$/, "");
if (AddStretagyValidations()) {
$.ajax({
cache: false, async: false,
url: '/StrategyBuilder/SaveStrategy?strategyTitle=' + $("#txtStrategyTitle").val() + '&MBC=' + selMajorBusinessCategory.value + '&fiscalYear=' + sfcdetails + '&id=' + Strategyid,
datatype: 'json',
type: 'POST',
success: function (response) {
alert("Strategy saved successfully.");
$('#tblGrid').trigger("reloadGrid");
$('#divStrategy').dialog('close');
$('#txtStrategyTitle').val('');
$('#selMajorBusinessCategory').val('');
$('#SltFiscalYear').val('');
}
});
}
}
This code is not getting # value in the strategy title tb
amritbdk
25-Jan-14 13:45pm
View
can u reffer me the book which will be best for me
amritbdk
25-Jan-14 13:39pm
View
Thanks,But as i m new to mvc i want to know how and where i have to write rhe codes for it.
amritbdk
10-Aug-13 4:53am
View
pls explain with a eg
amritbdk
18-Jul-12 8:06am
View
Thanks,sir
amritbdk
18-Jul-12 2:34am
View
can u explain the solution
amritbdk
18-Jul-12 2:33am
View
thanks,sir
Show More