public DeploymentsControllerTest()
 {
     this.deploymentsMock = new Mock <IDeployments>();
     this.mockHttpContext = new Mock <HttpContext> {
         DefaultValue = DefaultValue.Mock
     };
     this.mockHttpRequest = new Mock <HttpRequest> {
         DefaultValue = DefaultValue.Mock
     };
     this.mockHttpRequest.Setup(m => m.HttpContext).Returns(this.mockHttpContext.Object);
     this.mockHttpContext.Setup(m => m.Request).Returns(this.mockHttpRequest.Object);
     this.claims = new List <Claim>();
     this.claims.Add(new Claim("sub", "Admin"));
     this.claims.Add(new Claim("email", "*****@*****.**"));
     this.controller = new DeploymentsController(this.deploymentsMock.Object)
     {
         ControllerContext = new ControllerContext()
         {
             HttpContext = this.mockHttpContext.Object,
         },
     };
     this.contextItems = new Dictionary <object, object>
     {
         {
             RequestExtension.ContextKeyTenantId, TenantId
         },
         {
             RequestExtension.ContextKeyUserClaims, this.claims
         },
     };
     this.mockHttpContext.Setup(m => m.Items).Returns(this.contextItems);
 }
 public DeploymentsControllerTest()
 {
     this.deploymentsMock = new Mock <IDeployments>();
     this.controller      = new DeploymentsController(this.deploymentsMock.Object);
 }