Esempio n. 1
0
        /// <summary>
        /// Create and SetDates of and Rent
        /// </summary>
        /// <param name="endRent">Finish date of rent</param>
        /// <param name="type">Type of rent to create</param>
        /// <returns>Instance of Rent</returns>
        private void CreateRent(DateTime endRent, TypeRent type)
        {
            var startRent = new DateTime(2017, 10, 01, 09, 15, 25);

            instance = RentFactory.CreateInstance(type);
            instance.SetRentDates(startRent, endRent);
        }