37

Self Assessment COS202 a-Expense

Embed Size (px)

Citation preview

Page 1: Self Assessment COS202 a-Expense
Page 2: Self Assessment COS202 a-Expense

Moving Applications to the Cloud

Scott DensmoreSr. DeveloperMicrosoft patterns & practices

Page 3: Self Assessment COS202 a-Expense

Self Assessment

This session is developer focused

   [TestMethod]   public void DisplayReturnsEmptyViewName()   {        var mockSurveyStore = new Mock<ISurveyStore>();       mockSurveyStore.Setup(r => 

r.GetSurveyByTenantAndSlugName(It.IsAny<string>(),  It.IsAny<string>(),  It.IsAny<bool>()))

                             .Returns(new Survey());        var controller = new SurveysController(mockSurveyStore.Object, 

default(ISurveyAnswerStore));

        var result = controller.Display(string.Empty, string.Empty) as ViewResult;

        Assert.AreEqual(string.Empty, result.ViewName);   }

           

Page 4: Self Assessment COS202 a-Expense

Assumption

You already know Windows Azure

COS202

Page 5: Self Assessment COS202 a-Expense

Plan

Moving to the Cloud: A Simple Case Study

Page 6: Self Assessment COS202 a-Expense

a-Expense

Page 7: Self Assessment COS202 a-Expense

a-Expense

Page 8: Self Assessment COS202 a-Expense

a-Expense

Page 9: Self Assessment COS202 a-Expense

a-Expense

Page 10: Self Assessment COS202 a-Expense

a-Expense

Page 11: Self Assessment COS202 a-Expense

a-Expense

Page 12: Self Assessment COS202 a-Expense

“a- Expense”

A classic intranet application

Demo

Page 13: Self Assessment COS202 a-Expense

Identity

SIM325

Page 14: Self Assessment COS202 a-Expense
Page 15: Self Assessment COS202 a-Expense
Page 16: Self Assessment COS202 a-Expense
Page 17: Self Assessment COS202 a-Expense

Session and Profile

Page 18: Self Assessment COS202 a-Expense

Exception Handling / Logging

 <configSections>    <section name="loggingConfiguration" type="Microsoft.Practices.EnterpriseLibrary.Logging.Configuration.LoggingSettings, Microsoft.Practices.EnterpriseLibrary.Logging, Version=5.0.414.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="true" />    <section name="exceptionHandling" type="Microsoft.Practices.EnterpriseLibrary.ExceptionHandling.Configuration.ExceptionHandlingSettings, Microsoft.Practices.EnterpriseLibrary.ExceptionHandling, Version=5.0.414.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" requirePermission="true" />    <section name="microsoft.identityModel" type="Microsoft.IdentityModel.Configuration.MicrosoftIdentityModelSection, Microsoft.IdentityModel, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />  </configSections>  <loggingConfiguration name="" tracingEnabled="true" defaultCategory="General">    <listeners>      <add listenerDataType="Microsoft.Practices.EnterpriseLibrary.Logging.Configuration.SystemDiagnosticsTraceListenerData, Microsoft.Practices.EnterpriseLibrary.Logging, Version=5.0.414.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" type="Microsoft.WindowsAzure.Diagnostics.DiagnosticMonitorTraceListener, Microsoft.WindowsAzure.Diagnostics, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"  traceOutputOptions="Timestamp, ProcessId" name="System Diagnostics Trace Listener" />    </listeners>    <categorySources>      <add switchValue="All" name="General">        <listeners>          <add name="System Diagnostics Trace Listener" />        </listeners>      </add>

COS210

Page 19: Self Assessment COS202 a-Expense

Data Access

COS304COS310

Page 20: Self Assessment COS202 a-Expense

Data Access – Using Table Storage

Page 21: Self Assessment COS202 a-Expense

Data Access – Using Table Storage

Page 22: Self Assessment COS202 a-Expense

Delivering Content from Blob Storage

Page 23: Self Assessment COS202 a-Expense

Delivering Content from Blob Storage

Page 24: Self Assessment COS202 a-Expense

Background Processes

Page 25: Self Assessment COS202 a-Expense

$

Page 26: Self Assessment COS202 a-Expense

Should it be on all the time?

DPR307

Page 27: Self Assessment COS202 a-Expense
Page 28: Self Assessment COS202 a-Expense
Page 29: Self Assessment COS202 a-Expense
Page 30: Self Assessment COS202 a-Expense
Page 31: Self Assessment COS202 a-Expense

Pattern Matching Exercise

Page 32: Self Assessment COS202 a-Expense

Resources

http://msdn.microsoft.com/practices

http://claimsid.codeplex.comhttp://wag.codeplex.com

Mail [email protected]

Blog/Twitterhttp://scottdensmore.typepad.com/@scottdensmore

Page 34: Self Assessment COS202 a-Expense

Resources

www.microsoft.com/teched

Sessions On-Demand & Community Microsoft Certification & Training Resources

Resources for IT Professionals Resources for Developers

www.microsoft.com/learning

http://microsoft.com/technet http://microsoft.com/msdn

Learning

http://northamerica.msteched.com

Connect. Share. Discuss.

Page 35: Self Assessment COS202 a-Expense

Complete an evaluation on CommNet and enter to win!

Page 36: Self Assessment COS202 a-Expense

MS Tag Placeholder Slide

Page 37: Self Assessment COS202 a-Expense

© 2011 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries.The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to

be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS

PRESENTATION.