Coder Social home page Coder Social logo

recruitingexercise's Introduction

RecruitingExercise

RecruitingTest class has seven tests that ensure the correct functioning of User.ExpiredSubscriptions property. Three of them are implemented already.

  1. Implement the ExpiredSubscriptions property in User class. A user has a list of subscriptions, which might contain expired ones. This property must return the number of expired subscriptions that the user has. Be aware that you can do any coding you need in both the Subscription and the User classes to solve the exercise.
  2. Implement the four remaining unit tests. For this, copy and paste the code located in any of the already existing tests. Remember that you will have to modify at most two lines of code to make the two unit tests fulfill their purpose. The method name suggests what needs to be corrected and instructs what the unit test is meant for. The already existing tests must not be modified. Assume that they are correct and will pass, provided the code you implement in User.ExpiredSubscriptions property is working as expected.
  3. Assume that the expiration date of a subscription works similar to how credit/debit cards work (they expire the last day of the month). Example: a subscription has an expiration date of Jan 31, 2019. If the current date is Feb 14, 2019, this subscription is considered as expired.
  4. You are allowed to ask any questions regarding the structure of the code.
  5. Feel free to do any research that can be of aid to solve the exercise.

You have 15 minutes to complete the assignment.

recruitingexercise's People

Watchers

David Rivas 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.