private MonthService CreateMonthService() { var userId = Guid.Parse(User.Identity.GetUserId()); var service = new MonthService(userId); return(service); }
/// <summary> /// Default Ctor - intializes the properies of the form /// </summary> public DataChartUI() { // Auto generated code for the form InitializeComponent(); _dataContext = new AccountingDataContext(); _generalCategoryHandler = new GeneralCategoryHandler(_dataContext); _monthService = new MonthService(_dataContext); }
public MultipleCategoriesCompare() { InitializeComponent(); MonthData = new Dictionary <string, Dictionary <DateTime, decimal> >(); _dataContext = new AccountingDataContext(); var generalCategoryHandler = new GeneralCategoryHandler(_dataContext); _monthService = new MonthService(_dataContext); CategoryNames = generalCategoryHandler.GetAllCategoryNames().ToList(); }
/// <summary> /// Default Ctor - intializes the properies of the form /// </summary> public DataChartUI() { // Intializes the local properties of the form CategoryNames = new List <string>(); MonthData = new Dictionary <string, Dictionary <DateTime, decimal> >(); // Auto generated code for the form InitializeComponent(); _dataContext = new AccountingDataContext(); _generalCategoryHandler = new GeneralCategoryHandler(_dataContext); _monthService = new MonthService(_dataContext); }
public void GetAppointments() { //Arrange var jsonService = new JsonService(); MyContext mycontext = new MyContext(); var MonthService = new MonthService(jsonService, mycontext); //Act var Appointments = MonthService.GetAppointments(1); //Assert Assert.IsTrue(Appointments.Count > 0); }
public void Setup() { SetUpContextOptions(); SetUpJwtOptions(); SetUpServices(); SetUpMapper(); SetUpLogger(); SetUpContext(); MonthService = new MonthService(Context, Mapper, Logger); }
// constructor public HomeController() { stateService = new StateService(); monthService = new MonthService(); regionSaleService = new RegionSaleService(); }
public MonthController(MonthService monthService) { _monthService = monthService; }