Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Introduce ViewModels folder #28

Merged
merged 1 commit into from
May 4, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
using ApplyToBecomeInternal.Extensions;
using ApplyToBecomeInternal.Models.Shared;
using ApplyToBecomeInternal.Models.Navigation;
using FluentAssertions;
using Xunit;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
using ApplyToBecome.Data.Models;
using ApplyToBecome.Data.Models.Application;
using ApplyToBecomeInternal.Models;
using ApplyToBecomeInternal.Models.Shared;
using ApplyToBecomeInternal.ViewModels;
using FluentAssertions;
using System;
using Xunit;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
using ApplyToBecome.Data.Models;
using ApplyToBecomeInternal.Models;
using ApplyToBecomeInternal.ViewModels;
using FluentAssertions;
using Xunit;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
using ApplyToBecome.Data.Models;
using ApplyToBecomeInternal.Models;
using ApplyToBecomeInternal.ViewModels;
using FluentAssertions;
using Xunit;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
using ApplyToBecome.Data.Models;
using ApplyToBecomeInternal.Models;
using ApplyToBecomeInternal.Models.Shared;
using ApplyToBecomeInternal.ViewModels;
using FluentAssertions;
using Xunit;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
using ApplyToBecome.Data.Models;
using ApplyToBecomeInternal.Models;
using ApplyToBecomeInternal.ViewModels;
using FluentAssertions;
using System;
using Xunit;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
using ApplyToBecome.Data.Models;
using ApplyToBecomeInternal.Models;
using ApplyToBecomeInternal.Models.Shared;
using ApplyToBecomeInternal.ViewModels;
using FluentAssertions;
using Xunit;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
using ApplyToBecome.Data;
using ApplyToBecomeInternal.Models;
using ApplyToBecomeInternal.ViewModels;
using Microsoft.AspNetCore.Mvc;

namespace ApplyToBecomeInternal.Controllers
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
using System.Diagnostics;
using ApplyToBecomeInternal.Models;
using ApplyToBecomeInternal.ViewModels;
using Microsoft.AspNetCore.Mvc;

namespace ApplyToBecomeInternal.Controllers
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
using ApplyToBecome.Data;
using ApplyToBecomeInternal.Models;
using ApplyToBecomeInternal.ViewModels;
using Microsoft.AspNetCore.Mvc;

namespace ApplyToBecomeInternal.Controllers
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
using ApplyToBecome.Data;
using ApplyToBecomeInternal.Models;
using ApplyToBecomeInternal.ViewModels;
using Microsoft.AspNetCore.Mvc;

namespace ApplyToBecomeInternal.Controllers
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
using ApplyToBecome.Data;
using ApplyToBecomeInternal.Models;
using ApplyToBecomeInternal.ViewModels;
using Microsoft.AspNetCore.Mvc;

namespace ApplyToBecomeInternal.Controllers
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using ApplyToBecomeInternal.Models.Shared;
using ApplyToBecomeInternal.Models.Navigation;

namespace ApplyToBecomeInternal.Extensions
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using System;

namespace ApplyToBecomeInternal.Models.Shared
namespace ApplyToBecomeInternal.Models.Navigation
{
public class NavigationAttribute : Attribute
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace ApplyToBecomeInternal.Models.Shared
namespace ApplyToBecomeInternal.Models.Navigation
{
public enum NavigationTarget
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
using System.Collections.Generic;
using System.Linq;

namespace ApplyToBecomeInternal.Models.Shared
namespace ApplyToBecomeInternal.Models.Navigation
{
public class NavigationViewModel
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
using ApplyToBecome.Data.Models.Application;
using ApplyToBecomeInternal.Models.ApplicationForm;
using ApplyToBecomeInternal.Models.ApplicationForm.Sections;
using ApplyToBecomeInternal.Models.Shared;
using ApplyToBecomeInternal.Models.Navigation;
using System.Collections.Generic;

namespace ApplyToBecomeInternal.Models
namespace ApplyToBecomeInternal.ViewModels
{
public class ApplicationFormViewModel
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace ApplyToBecomeInternal.Models
namespace ApplyToBecomeInternal.ViewModels
{
public class ErrorViewModel
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using ApplyToBecomeInternal.Models.Shared;
using ApplyToBecomeInternal.Models.Navigation;
using System.Collections.Generic;

namespace ApplyToBecomeInternal.Models
namespace ApplyToBecomeInternal.ViewModels
{
public class NewProjectNoteViewModel
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
using System.Collections.Generic;
using System.Linq;

namespace ApplyToBecomeInternal.Models
namespace ApplyToBecomeInternal.ViewModels
{
public class ProjectListViewModel
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using ApplyToBecomeInternal.Models.Shared;
using ApplyToBecomeInternal.Models.Navigation;

namespace ApplyToBecomeInternal.Models
namespace ApplyToBecomeInternal.ViewModels
{
public class ProjectNotesViewModel
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
using System;
using System.Collections.Generic;

namespace ApplyToBecomeInternal.Models
namespace ApplyToBecomeInternal.ViewModels
{
public class ProjectViewModel
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace ApplyToBecomeInternal.Models.Shared
namespace ApplyToBecomeInternal.ViewModels
{
public enum SubMenuPage
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace ApplyToBecomeInternal.Models.Shared
namespace ApplyToBecomeInternal.ViewModels
{
public class SubMenuViewModel
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using ApplyToBecomeInternal.Models.Shared;
using ApplyToBecomeInternal.Models.Navigation;

namespace ApplyToBecomeInternal.Models
namespace ApplyToBecomeInternal.ViewModels
{
public class TaskListViewModel
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@model ApplicationFormViewModel;
@model ApplyToBecomeInternal.ViewModels.ApplicationFormViewModel;
@{
ViewData["Title"] = "Application Form";
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@model ErrorViewModel
@model ApplyToBecomeInternal.ViewModels.ErrorViewModel
@{
ViewData["Title"] = "Error";
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@model ProjectListViewModel
@model ApplyToBecomeInternal.ViewModels.ProjectListViewModel
@{
ViewData["Title"] = "Project list";
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@model ProjectNotesViewModel;
@model ApplyToBecomeInternal.ViewModels.ProjectNotesViewModel;
@{
ViewData["Title"] = "Project Notes";
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@model ApplyToBecomeInternal.Models.NewProjectNoteViewModel;
@model ApplyToBecomeInternal.ViewModels.NewProjectNoteViewModel;

<div class="govuk-grid-row">
<div class="govuk-grid-column-full">
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
@using ApplyToBecomeInternal.Models.Shared
@model NavigationViewModel;
@model ApplyToBecomeInternal.Models.Navigation.NavigationViewModel;

<a href="@Model.Url" class="govuk-back-link">@Model.Content</a>
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@model ProjectViewModel
@model ApplyToBecomeInternal.ViewModels.ProjectViewModel

<span class="govuk-caption-xl">@Model.SchoolURN</span>
<h1 class="govuk-heading-xl govuk-!-margin-bottom-4">
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@using ApplyToBecomeInternal.Models.Shared
@model SubMenuViewModel;
@using ApplyToBecomeInternal.ViewModels
@model ApplyToBecomeInternal.ViewModels.SubMenuViewModel;

<nav class="moj-sub-navigation" aria-label="Sub navigation">
<ul class="moj-sub-navigation__list">
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@model TaskListViewModel;
@model ApplyToBecomeInternal.ViewModels.TaskListViewModel;
@{
ViewData["Title"] = "Task List";
}
Expand Down