This repository has been archived by the owner on Jan 17, 2024. It is now read-only.
forked from 18F/dol-whd-14c
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'refs/remotes/origin/master' into featur…
…e-ui-design
- Loading branch information
Showing
28 changed files
with
348 additions
and
25 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,101 @@ | ||
licenses: | ||
angular: | ||
name: MIT | ||
angular-animate: | ||
name: MIT | ||
angular-cookies: | ||
name: MIT | ||
angular-moment: | ||
name: MIT | ||
angular-recaptcha: | ||
name: MIT | ||
angular-resource: | ||
name: MIT | ||
angular-route: | ||
name: MIT | ||
angular-sanitize: | ||
name: MIT | ||
jquery: | ||
name: MIT | ||
lodash: | ||
name: MIT | ||
moment: | ||
name: MIT | ||
ng-mask: | ||
name: MIT | ||
zxcvbn: | ||
name: MIT | ||
angular-mocks: | ||
name: MIT | ||
babel-core: | ||
name: MIT | ||
babel-loader: | ||
name: MIT | ||
babel-polyfill: | ||
name: MIT | ||
babel-preset-es2015: | ||
name: MIT | ||
copy-webpack-plugin: | ||
name: MIT | ||
css-loader: | ||
name: MIT | ||
eslint: | ||
name: MIT | ||
eslint-loader: | ||
name: MIT | ||
file-loader: | ||
name: MIT | ||
html-loader: | ||
name: MIT | ||
istanbul-instrumenter-loader: | ||
name: WTFPL | ||
jasmine: | ||
name: MIT | ||
jasmine-core: | ||
name: MIT | ||
karma: | ||
name: MIT | ||
karma-chrome-launcher: | ||
name: MIT | ||
karma-coverage: | ||
name: MIT | ||
karma-coveralls: | ||
name: MIT | ||
karma-jasmine: | ||
name: MIT | ||
karma-phantomjs-launcher: | ||
name: MIT | ||
karma-webpack: | ||
name: MIT | ||
ncp: | ||
name: MIT | ||
ng-annotate-loader: | ||
name: MIT | ||
ngtemplate-loader: | ||
name: MIT | ||
node-bourbon: | ||
name: MIT | ||
node-sass: | ||
name: MIT | ||
resolve-url-loader: | ||
name: MIT | ||
rimraf: | ||
name: ISC | ||
sass-loader: | ||
name: MIT | ||
script-loader: | ||
name: MIT | ||
style-loader: | ||
name: MIT | ||
susy: | ||
name: BSD-3-Clause | ||
url-loader: | ||
name: MIT | ||
uswds: | ||
name: SEE LICENSE in LICENSE.md | ||
webpack: | ||
name: MIT | ||
webpack-dev-server: | ||
name: MIT | ||
webpack-fail-plugin: | ||
name: MIT |
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
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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
using System; | ||
using DOL.WHD.Section14c.Domain.Models.Submission; | ||
|
||
namespace DOL.WHD.Section14c.Business | ||
{ | ||
public interface IStatusService : IDisposable | ||
{ | ||
Status GetStatus(int id); | ||
} | ||
} |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
using System.Linq; | ||
using DOL.WHD.Section14c.DataAccess; | ||
using DOL.WHD.Section14c.Domain.Models.Submission; | ||
|
||
namespace DOL.WHD.Section14c.Business.Services | ||
{ | ||
public class StatusService : IStatusService | ||
{ | ||
private readonly IStatusRepository _repository; | ||
public StatusService(IStatusRepository repository) | ||
{ | ||
_repository = repository; | ||
} | ||
|
||
public Status GetStatus(int id) | ||
{ | ||
return _repository.Get().SingleOrDefault(x => x.Id == id); | ||
} | ||
|
||
public void Dispose() | ||
{ | ||
_repository.Dispose(); | ||
} | ||
} | ||
} |
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
using System; | ||
using System.Linq; | ||
using DOL.WHD.Section14c.Domain.Models.Submission; | ||
|
||
namespace DOL.WHD.Section14c.DataAccess | ||
{ | ||
public interface IStatusRepository : IDisposable | ||
{ | ||
IQueryable<Status> Get(); | ||
} | ||
} |
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
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
3 changes: 1 addition & 2 deletions
3
DOL.WHD.Section14c.DataAccess/Repositories/ResponseRepository.cs
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
24 changes: 24 additions & 0 deletions
24
DOL.WHD.Section14c.DataAccess/Repositories/StatusRepository.cs
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
using System.Linq; | ||
using DOL.WHD.Section14c.Domain.Models.Submission; | ||
|
||
namespace DOL.WHD.Section14c.DataAccess.Repositories | ||
{ | ||
public class StatusRepository: IStatusRepository | ||
{ | ||
private readonly ApplicationDbContext _dbContext; | ||
public StatusRepository() | ||
{ | ||
_dbContext = new ApplicationDbContext(); | ||
} | ||
|
||
public IQueryable<Status> Get() | ||
{ | ||
return _dbContext.ApplicationStatuses.AsQueryable(); | ||
} | ||
|
||
public void Dispose() | ||
{ | ||
_dbContext.Dispose(); | ||
} | ||
} | ||
} |
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
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
Oops, something went wrong.