This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Fact] | |
public void Index_OneGet_ReturnsViewModel() | |
{ | |
var sut= new HomeController(); | |
var httpContext = new Mock<HttpContext>().Object; | |
var actionContext=new ActionContext(httpContext, new RouteData(), new ActionDescriptor()); | |
sut.ActionContext=actionContext; | |
ViewResult result= sut.Index() as ViewResult; | |
Assert.True(result.ViewData.Model is StartPageViewModel); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Building Microsoft.Framework.ApplicationHost .NETFramework,Version=v4.5 | |
System.TypeLoadException: Could not load type 'System.Reflection.Internal.MemoryMappedFileBlock' from assembly 'System.Reflection.Metadata, Version=1.0.11.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'. | |
... | |
. | |
.. | |
at Microsoft.Framework.Project.BuildManager.Build () [0x00000] in <filename unknown>:0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-[install node.js azure sdk mac os x] | |
-azure account download | |
-[save pub file to disk] | |
-azure account import xxx.publishsettings | |
-azure site create sitename --git | |
-sudo npm install express -g | |
-express | |
-npm install | |
-[rename app.js to server.js] | |
-[node server.js] will start your app locally |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
scriptcs -install StreamO | |
scriptcs | |
> using StreamO; | |
> using Microsoft.Exchange.WebServices.Data; | |
> var cred = new WebCredentials("[email protected]","password"); | |
> var listener=new StreamingListener(cred,(eventData)=>{ Console.WriteLine("Event incoming for "+eventData.Sender.ToString()); }); | |
> listener.AddSubscription("[email protected]"); |
NewerOlder