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
TFS 2010 Troubleshooting: Work Item can not be created or updated | |
[http://www.persiabme.ir/tfs2010troubleshooting.aspx] | |
[References] | |
http://stackoverflow.com/questions/3422653/managing-users-in-the-tfs-work-items-assigned-to-field | |
https://msdn.microsoft.com/en-us/library/ms404871%28v=vs.90%29.aspx | |
http://geekswithblogs.net/jehan/archive/2010/07/07/importexport-work-item-types-in-tfs-2010.aspx | |
[Commands] |
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 NUnit.Framework; | |
namespace Paysa | |
{ | |
public abstract class BaseFixture | |
{ | |
protected virtual void OnFixtureSetup() { } | |
protected virtual void OnFixtureTeardown() { } |
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
[AcceptVerbs(HttpVerbs.Post)] | |
public ActionResult UploadImage(HttpPostedFileBase upload, string CKEditorFuncNum, string CKEditor, string langCode) | |
{ | |
//http://stackoverflow.com/a/4088194/167670 | |
//http://arturito.net/2010/11/03/file-and-image-upload-with-asp-net-mvc2-with-ckeditor-wysiwyg-rich-text-editor/ | |
//http://haacked.com/archive/2010/07/16/uploading-files-with-aspnetmvc.aspx | |
if (upload.ContentLength <= 0) | |
return null; |
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; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Web; | |
using System.Web.UI; | |
using System.Web.UI.WebControls; | |
using Test.Core; | |
namespace Test.Web | |
{ |
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
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="sand.aspx.cs" Inherits="Test.Web.sand" %> | |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | |
<html xmlns="http://www.w3.org/1999/xhtml"> | |
<head runat="server"> | |
<title></title> | |
</head> | |
<body> | |
<form id="form1" runat="server"> | |
<div> |
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.Collections.Generic; | |
using MyApp.Common; | |
namespace MyApp.Server.Core | |
{ | |
public interface IUserRepository : IRepository<User> | |
{ | |
IList<User> GetAllUsers(); | |
User GetUserByUserName(string userName); | |
int AddNewUser(string userName, string password, bool isLocked); |