Exemplo n.º 1
0
 public OfflineDoctorResponse Put(OfflineDoctorRequest request)
 {
     return(new OfflineDoctorResponse
     {
         Clinic = this.clinicsApplication.OfflineDoctor(Request.ToCaller(), request.Id, request.FromUtc,
                                                        request.ToUtc)
     });
 }
Exemplo n.º 2
0
 public void Initialize()
 {
     this.identifierFactory = new Mock <IIdentifierFactory>();
     this.identifierFactory.Setup(f => f.IsValid(It.IsAny <Identifier>())).Returns(true);
     this.validator = new OfflineDoctorRequestValidator(this.identifierFactory.Object);
     this.dto       = new OfflineDoctorRequest
     {
         Id      = "anid",
         FromUtc = DateTime.UtcNow.AddSeconds(1),
         ToUtc   = DateTime.UtcNow.AddSeconds(2)
     };
 }