Beispiel #1
0
 //todo: Use Automapper
 public static Server MapToServer(this ServerDto dto)
 {
     return(new Server
     {
         Number = dto.ServerNumber(),
         Country = dto.ServerCountryName(),
         Distance = dto.ServerDistance()
     });
 }
 public void ShouldGetServerNumber_WhenServerDtoNameIsValid()
 {
     //assert
     Assert.AreEqual(12, _validDto.ServerNumber());
 }
 public void ShouldThrowRetrieveServerNumberException_WhenServerDtoNameIsInvalid()
 {
     //assert
     _failedDto.ServerNumber();
 }