public void SetUp() { Controller = new AdminController { AdminRepository = AdminRepository = Substitute.For<IAdminRepository>(), ControllerContext = CreateControllerContext() }; }
public void SetUp() { TestAuthenticationAndAuthorization.SetTestUserToCurrentPrincipal(); CustomResolver.Initiate(); Controller = new AdminController { AdminRepository = AdminRepository = Substitute.For<IAdminRepository>(), ControllerContext = ControllerContext, Repository = Repository }; }