This file contains 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
using System.ComponentModel; | |
namespace PropertyWeave | |
{ | |
public class StockTicker : INotifyPropertyChanged | |
{ | |
public event PropertyChangedEventHandler PropertyChanged; | |
public string MessageBoxMessage { get; set; } |
This file contains 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
[HttpPost] | |
public ActionResult Create(Create_Album album) | |
{ | |
if(ModelState.IsValid) | |
{ | |
var newAlbum = new Album(); | |
newAlbum.Genre = session.Load<Genre>(album.GenreId); | |
newAlbum.Title = album.Title; | |
newAlbum.CountSold = album.CountSold; | |
newAlbum.Price = album.Price; |
This file contains 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
public class WebApiApplication : System.Web.HttpApplication | |
{ | |
protected void Application_Start() | |
{ | |
ConfigureGlobal(GlobalConfiguration.Configuration); | |
FilterConfig.RegisterGlobalFilters(GlobalFilters.Filters); | |
RouteConfig.RegisterRoutes(RouteTable.Routes); | |
BundleConfig.RegisterBundles(BundleTable.Bundles); | |
} |
This file contains 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
using System.Net; | |
using System.Net.Http; | |
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Web.Http; | |
using Sample.Repository | |
namespace Sample.Controllers | |
{ |
This file contains 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
app.controller("HomeController", ["$scope", "$dialog", function ($scope, $dialog) { | |
var t = '<div>' + | |
'<button ng-click="close(result)" class="btn btn-primary" >Close</button>' + | |
'</div>'; | |
$scope.opts = { | |
backdrop: true, | |
keyboard: true, | |
backdropClick: true, |
This file contains 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
function LoginFlow() { | |
this.loginPage = new LoginPage(driver); // another question is how to provide the driver, global or parameter? | |
function login(username, password){ | |
loginPage.userName.text = username; | |
loginPage.password.text = password; | |
loginPage.loginButton.click(); | |
dalek.waitFor(window.document.title == 'Home'); // ideally wouldn't want to have to use dalek, driver would be better | |
} |