private DespatchEditModel BuildDespatchEditModelAC(DespatchLocation entity)
 {
     return(new DespatchEditModel
     {
         DespatchID = entity.DespatchLocationID,
         DespatchCode = entity.DespatchLocationCode,
         DespatchName = entity.DespatchLocationName
     });
 }
        public void SetUp()
        {
            this.despatchLocation1 = new DespatchLocation {
                Id = 1, LocationCode = "one"
            };
            this.despatchLocation2 = new DespatchLocation {
                Id = 2, LocationCode = "two"
            };

            this.DespatchLocationFacadeService.GetAll()
            .Returns(new SuccessResult <IEnumerable <DespatchLocation> >(new List <DespatchLocation>
            {
                this.despatchLocation1, this.despatchLocation2
            }));

            this.Response = this.Browser.Get(
                "/logistics/despatch-locations",
                with =>
            {
                with.Header("Accept", "application/json");
            }).Result;
        }