Beispiel #1
0
        public void set_date_witch_sucess()
        {
            var procedure = new Procedure();
            procedure.SetDate(DateTime.Now);

            Assert.IsTrue(procedure.Date != null);
        }
Beispiel #2
0
        private static ProcedureModel MapProcedureModel(Procedure procedure)
        {
            Mapper.CreateMap<Procedure, ProcedureModel>().ForMember(tuss => tuss.TUSS, proc => proc.Ignore());
            var procedureModel = Mapper.Map<Procedure, ProcedureModel>(procedure);

            if (procedure.Tus != null)
            {
                procedureModel.TUSS = TUSSMapper.MapTUSSModelFrom(procedure.Tus);
            }

            return procedureModel;
        }
Beispiel #3
0
 public void get_description_witch_sucess()
 {
     var procedure = new Procedure { Tus = new TUSS { Description = "desc" }, Date = DateTime.Now };
     Assert.IsTrue(procedure.GetDescription() != string.Empty);
 }
Beispiel #4
0
 public void get_code_witch_sucess()
 {
     var procedure = new Procedure { Tus = new TUSS { Code = "03" }, Date = DateTime.Now };
     Assert.IsTrue(procedure.GetCode() != string.Empty);
 }