public void ConvertFromMapBookToCoriaMapBook() { teCoria.InternalApi.CoriaMapBook coriamapbook = new teCoria.InternalApi.CoriaMapBook(); kcgCore.Models.MapBook mapbook = new kcgCore.Models.MapBook(); mapbook.Id = 10; coriamapbook = teCoria.InternalApi.CoriaDataService.ToCoriaMapBook(mapbook, new teCoria.InternalApi.CoriaMapBook()); Assert.AreEqual(coriamapbook.Id, mapbook.Id); }
public void NewCoriaMapBookTest() { teCoria.InternalApi.CoriaMapBook mapbook = new teCoria.InternalApi.CoriaMapBook(); mapbook.Id = 1; mapbook.Name = "test"; Assert.IsInstanceOfType(mapbook, typeof(kcgCore.Models.MapBook));; }
public void CreateCoriaMapBookTest() { teCoria.InternalApi.CoriaMapBook mapbook = new teCoria.InternalApi.CoriaMapBook(); mapbook.ApplicationId = Guid.NewGuid(); mapbook.ApplicationTypeId = new Guid(); mapbook.AvatarUrl = ""; mapbook.Description = "testing description"; mapbook.GroupId = 0; mapbook.Name = "test mapbook"; mapbook = teCoria.InternalApi.CoriaDataService.CreateUpdateMapBook(mapbook); teCoria.InternalApi.CoriaDataService.DeleteCoriaMapBookApplication(mapbook); Assert.IsNotNull(mapbook); }