Just recently through the development of the rental site to learn MVC, and then learn the basics of unit testing, and now began the development of fitness site, the project will be combined with MVC and unit testing, in the development of the practice process, the strike, consolidate and use the previous content.
A fitness website function description
About the needs of the fitness site, mainly from the needs of individual daily exercise, in order to achieve the purpose of auxiliary exercise. There's a lot of fitness-related apps in the App Store, but there's always no way to find an app that's not flashy, socially-friendly, and no running religion that's good for muscle training. So just through the development of the fitness site, learning MVC and unit testing, if successful, it can also be used for daily exercise.
The main function of the website is to record the user's customized fitness plan, and to prompt the user to execute the plan by giving the training content of the day. The website does not offer a fitness class function.
A) The front desk features of the website are as follows:
During the execution of a fitness plan, the execution is recorded by Punch-in. and mainly for the purpose of increasing muscle, it is necessary to have the circumference of the recording function, and users will be able to graphically understand their efforts in the form of the situation.
b) The background of the site mainly for the General administrator rights control and configuration for the foreground information, but also to view the site users and the administrator operation log.
c) User registration, login to enter a verification code, registration using the mailbox activation verification.
II. Project Structure
A) The project will use the same structure as the previous rental site (ui+service+dto), while adding a test project for the main code, such as Fit.Service.Tests, to test the Service layer.
b) in order to replace EF with the pile object, it is necessary to change the internal structure of the service layer, but the practice still needs learning.
c) Third-party components are also consistent with the rental site, the main components such as ORM using EF, IOC using AUTOFAC, logs using log4net, in addition to unit testing using NUnit, the isolation framework uses Nsubstitute, But seemingly online nsubstitute information is not too much, if later there is great difficulty, will replace into MOQ.
I do not know whether it can be completed smoothly, how long it takes, in short, the premonition will be difficult, then roll up the sleeves to refuel dry.
MVC and Unit Testing Practice Fitness website (i)-Project overview