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
| namespace Web.Extensions.Control | |
| { | |
| public static partial class HtmlHelperExtensions | |
| { | |
| // Usage: @Html.ListBoxWithAttributesFor(m => m.Foo, Model.Foos, false) | |
| // See SelectListItemWithAttributes | |
| public static MvcHtmlString ListBoxWithAttributesFor<TModel, TProperty>(this HtmlHelper<TModel> htmlHelper, Expression<Func<TModel, TProperty>> expression, IEnumerable<SelectListItemWithAttributes> selectList, bool multiple = true) | |
| { | |
| if (expression == null) | |
| { |
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
| namespace Core.Tests | |
| { | |
| using System; | |
| using System.Collections.Generic; | |
| using System.Linq; | |
| using System.Reflection; | |
| using Moq; | |
| public static class MoqVerifier |
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
| using System.Web; | |
| using Web.AppStart; | |
| [assembly: WebActivator.PreApplicationStartMethod(typeof(DependencyInjection), "BootstrapContainer")] | |
| namespace Web.AppStart | |
| { | |
| using System; | |
| using System.IO; |
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
| namespace Web | |
| { | |
| using System; | |
| using System.Web; | |
| using System.Web.Http; | |
| using System.Web.Mvc; | |
| using System.Web.Optimization; | |
| using System.Web.Routing; | |
| using NLog; |
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
| using Web.AppStart; | |
| using WebActivator; | |
| [assembly: PostApplicationStartMethod(typeof(Bundles), "Start")] | |
| namespace Web.AppStart | |
| { | |
| using System.Collections.Generic; | |
| using System.Web; |
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
| DBCC CHECKIDENT ([Table], RESEED, X) |
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
| namespace Tests.Domain.Builders | |
| { | |
| using System; | |
| using System.Collections.ObjectModel; | |
| using global::Core.Tests.Builders; | |
| using Domain; | |
| public class FooBuilder : TestDataBuilder<FooBuilder, Foo> |
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
| [Test] | |
| public void TestRoute_RoutesToCorrectRoute() | |
| { | |
| var routes = new RouteCollection(); | |
| var areaRegistration = new FooAreaRegistration(); | |
| Assert.AreEqual("Foo", areaRegistration.AreaName); | |
| var areaRegistrationContext = new AreaRegistrationContext(areaRegistration.AreaName, routes); | |
| areaRegistration.RegisterArea(areaRegistrationContext); |
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
| [Test] | |
| public void RegisterArea_RoutesToArea() | |
| { | |
| var routes = new RouteCollection(); | |
| var areaRegistration = new FooAreaRegistration(); | |
| Assert.AreEqual("Foo", areaRegistration.AreaName); | |
| var areaRegistrationContext = new AreaRegistrationContext(areaRegistration.AreaName, routes); | |
| areaRegistration.RegisterArea(areaRegistrationContext); |
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
| namespace Core.Security | |
| { | |
| using System.Security.Cryptography; | |
| using System.Text; | |
| public class SecurityModule | |
| { | |
| public static string GetMd5Hash(string input) | |
| { | |
| var md5 = MD5.Create(); |