{ public int Id { get; set; } [Required] public string Name { get; set; } [Required] public string Description { get; set; } public DateTime StartTime { get; set; } public DateTime EndTime { get; set; } }
u CritterMatch.com depends on: u log4net v1.0.6 u Entity Framework v4 u ASP.Net Web API v1.0.0 u CMCBL v1.0.0 u CritterMatch Business Services depends on: u log4net v1.2.1 u Entity Framework v5 u ASP.Net Web API v1.2.2 u CMCBL v1.1.0
Integration/QA u Staging u Production u CritterMatch Business Services u Developer Workstations u Integration/QA u Production – Client A u Production – Client B
Strings u Web Service Connection Endpoints u Authorized Users? u Requirements Management u Different views or behaviors u Dependency Injection? u Often times a configuration change, too.
u If you are trying to debug the production database query, you’re doing it wrong. u If you are trying to figure out the object model being sent to the view, you’re doing it wrong. u If you are trying to debug the workflow of your application, you’re doing it wrong. u The highest level of constant production logging should be INFO. u Info serves for interactions between customers and your site. u Info surfaces information customers have requested, but never the interactions of your code.
Log if Ops is monitoring u Boy Who Cried Wolf u Be meticulous about which exceptions are surfaced out of your application u Exceptions are expensive
would like to create a conference So that I can manage the details of the conference. Scenario: Attempting to create a conference without times throws a validation error Given I submit the Name of the conference as AgileDotNet When I create the conference Then I should get a validation error Scenario: Creating a conference with name and times creates the conference Given I submit the Name of the conference as AgileDotNet And I submit the Description of the conference as "Great content blending the world of Agile with DotNet development" And I submit the StartTime of the conference as 2013-‐05-‐17 08:00:00 And I submit the EndTime of the conference as 2013-‐05-‐17 18:00:00 When I create the conference Then I should get the status code Created
public void GivenIHaveSubmittedConferenceInformation(string field, string value) { var conferenceType = typeof (Conference); var fieldInfo = conferenceType.GetProperty(field); if (fieldInfo == null) throw new Exception("No field by name " + field + " found."); if (fieldInfo.PropertyType == typeof(DateTime)) fieldInfo.SetValue(ConferenceToSubmit, DateTime.Parse(value)); else fieldInfo.SetValue(ConferenceToSubmit, value); }