//using MEU.API.ObjectDefinitions.Common;
//using MEU.API.ObjectDefinitions.WorkingTime;
//using MEU.API.Providers;
//using MEU.API.Services.CronJobs;
using System;
using System.Linq;
using System.Threading.Tasks;
using Xunit;
using Xunit.Abstractions;

namespace MEU.API.TEST
{
    public class Unit_WorkingTime
    {
        //private readonly ITestOutputHelper output;

        //public Unit_WorkingTime(ITestOutputHelper output)
        //{
        //    this.output = output;
        //}
        //[Fact]
        //public void TestWorkingTimeFrame()
        //{
        //    TimeDuration wroking = new TimeDuration(new DateTime(2020, 12, 10, 7, 20, 00), new DateTime(2020, 12, 10, 17, 20, 00));
        //    TimeDuration shift = new TimeDuration(new DateTime(2020, 12, 10, 8, 00, 00), new DateTime(2020, 12, 10, 17, 30, 00));

        //    WorkingTimeFrame wtf = new WorkingTimeFrame(wroking, shift);
        //    output.WriteLine("LateComming: {0}", wtf.LateComming);            
        //    output.WriteLine("SoonComeback: {0}", wtf.SoonComeback);           
        //    output.WriteLine("WorkingTimes: {0}", wtf.WorkingTimes);
        //    output.WriteLine("ActualLateComming: {0}", wtf.ActualLateComming);
        //    output.WriteLine("ActualSoonComeback: {0}", wtf.ActualSoonComeback);
        //    output.WriteLine("StartTime: {0}", wtf.StartTime);
        //    output.WriteLine("EndTime: {0}", wtf.EndTime);
        //    Assert.True(wtf.LateComming == new TimeSpan(0));           
        //    Assert.True(wtf.SoonComeback == new TimeSpan(0,10,0));
        //    Assert.True(wtf.WorkingTimes == new TimeSpan(9, 20, 0));
        //}
    }
}
