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
DECLARE @UserId as int | |
SET @UserId = 8521 | |
DELETE FROM UserAudits WHERE UserFk = @UserId | |
DELETE FROM Users WHERE Id = @UserId |
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 HomeModule : NancyModule | |
{ | |
public HomeModule() | |
{ | |
Get["/"] = parameters => "Hello Nancy"; | |
} | |
} |
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 CustomBootstrapper : DefaultNancyBootstrapper | |
{ | |
protected override void ConfigureApplicationContainer(TinyIoCContainer container) | |
{ | |
string mongoUser = ConfigurationManager.AppSettings["MongoUser"]; | |
string mongoPassword = ConfigurationManager.AppSettings["MongoPassword"]; | |
var connString = ConfigurationManager.AppSettings["MongoUrl"]; | |
connString = string.Format(connString, mongoUser, mongoPassword); | |
var databaseName = connString.Split('/').Last(); |
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 HomeModule : NancyModule | |
{ | |
private MongoCollection<Comment> _comments; | |
public HomeModule(MongoCollection<Comment> comments) | |
{ | |
_comments = comments; | |
Get["/"] = Index; | |
Post["/AddComment"] = AddComment; |
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 DoUrden.BudgetCalculator.Domain; | |
using DoUrden.BudgetCalculator.Domain.Interfaces.Logic; | |
using DoUrden.BudgetCalculator.Domain.Interfaces.Services; | |
using DoUrden.BudgetCalculator.Domain.Interfaces.Services.Repositories; | |
using DoUrden.BudgetCalculator.Web.Modules.Authentication; | |
using Moq; | |
using Nancy; | |
using NUnit.Framework; | |
namespace DoUrden.BudgetCalculator.Tests.Unit.Modules |
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 AuthenticationModule(IMemberRepository memberRepository, ISecurityLogic securityLogic, IEmailService emailService) | |
{ | |
_memberRepository = memberRepository; | |
_securityLogic = securityLogic; | |
_emailService = emailService; | |
Post["/register"] = args => PostRegister(this.Bind<RegistrationViewModel>()); | |
} | |
public Negotiator PostRegister(RegistrationViewModel model) |
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
{ | |
"variables": { | |
"client_id": "", | |
"client_secret": "", | |
"subscription_id": "", | |
"tenant_id": "", | |
"object_id": "", | |
"resource_group": "", | |
"storage_account": "", |
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
{ | |
"variables": { | |
"client_id": "", | |
"client_secret": "", | |
"subscription_id": "", | |
"tenant_id": "", | |
"object_id": "", | |
"resource_group": "", | |
"storage_account": "", |
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
2016/08/18 16:35:20 [INFO] Packer version: 0.10.1 | |
2016/08/18 16:35:20 Packer Target OS/Arch: darwin amd64 | |
2016/08/18 16:35:20 Built with Go Version: go1.6.2 | |
2016/08/18 16:35:20 Detected home directory from env var: /Users/ritasker | |
2016/08/18 16:35:20 Using internal plugin for amazon-ebs | |
2016/08/18 16:35:20 Using internal plugin for qemu | |
2016/08/18 16:35:20 Using internal plugin for vmware-iso | |
2016/08/18 16:35:20 Using internal plugin for parallels-pvm | |
2016/08/18 16:35:20 Using internal plugin for amazon-chroot | |
2016/08/18 16:35:20 Using internal plugin for amazon-instance |
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
# Create a resource group | |
resource "azurerm_resource_group" "eg-resource-group" { | |
name = "EventGeniusApi" | |
location = "${var.location}" | |
} | |
# Create SQL Server | |
resource "azurerm_sql_server" "eg-sql-server" { | |
name = "eg-sql-sandbox" | |
resource_group_name = "${azurerm_resource_group.eg-resource-group.name}" |
OlderNewer