Coder Social home page Coder Social logo

dotnet-basic-recruting-app's Introduction

Prerequisites

This repository contains a code which you are supposed to work with. Please create a fork of this repo. As a result of your task please send us back a link to your github repository. While working with the code, please commit all changes to your repository, for us to check your progress.

  • .NET 6.0 SDK installed.
  • Visual Studio 2022/Visual Studio Code/JetBrains Rider

Application

The application is a simple Web Api that is responsible for managing static sports data, such as teams, locations and so on.

Challenge

The task will be divided into two parts:

  1. Extending current solution with new required features.
  2. Refactoring of current solution which is written in a non-testable way and doesn't follow proper development patterns.

Part 1

  1. Integrating database to store Locations and Teams inside it. We suggest using SqlLiteDb, because it doesn't require any installation in the machine and can be integrated and run right away.

    1. Code first approach should be used.
    2. As a result all the data that api returns should come from the database.
  2. Adding validation to the LocationController and based on that return proper HTTP Codes.

    1. Location
      1. Name is required and it's maximum length should be 255.
      2. City is required and it's maximum length should be 55.
      3. There can't be more than one location with the same name.

Part 2

  1. As mentioned above, controllers and repositories aren't properly designed and don't follow general coding patterns such as SOLID, DRY, YAGNI. This part is all about you proposing how the code can be refactored in order to make it testable and more correct.
  2. Writing unit tests for that would be additional benefit.

How to run

You have two alternatives:

  1. Build and run solution in your IDE.
  2. Run dotnet run --project .\MatchDataManager.Api from project root directory.

dotnet-basic-recruting-app's People

Contributors

wojciech-duda avatar kkiziniewicz avatar

Watchers

Alex Ikhelis avatar Darius Robson avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.