This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.Reflection; | |
using AutoFixture.Kernel; | |
namespace SampleTests.AutoFixture | |
{ | |
public class LatitudeBuilder : ISpecimenBuilder | |
{ | |
/// <summary> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.Reflection; | |
using AutoFixture.Kernel; | |
namespace SampleTests.AutoFixture | |
{ | |
public class LongitudeBuilder : ISpecimenBuilder | |
{ | |
/// <summary> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Globalization; | |
using AutoMapper; | |
using SampleWebApi.Infrastructure.Reposiotry; | |
using SampleWebApi.Infrastructure.Service; | |
namespace SampleWebApi.Infrastructure.Mapping | |
{ | |
public class MappingProfile : Profile | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using AutoMapper; | |
using SampleWebApi.Infrastructure.Reposiotry; | |
namespace SampleWebApi.Infrastructure.Service | |
{ | |
/// <summary> | |
/// Class YouBikeService. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
namespace SampleWebApi.Infrastructure.Service | |
{ | |
/// <summary> | |
/// Interface IYouBikeService | |
/// </summary> | |
public interface IYouBikeService | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
namespace SampleWebApi.Infrastructure.Service | |
{ | |
public class YouBikeStationDto | |
{ | |
/// <summary> | |
/// 站點代號 | |
/// </summary> | |
public string No { get; set; } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.IO; | |
using System.IO.Compression; | |
using System.Linq; | |
using System.Net.Http; | |
using System.Net.Http.Headers; | |
using Newtonsoft.Json; | |
namespace SampleWebApi.Infrastructure.Reposiotry |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
namespace SampleWebApi.Infrastructure.Reposiotry | |
{ | |
public interface IYouBikeRepository | |
{ | |
/// <summary> | |
/// 取得所有 YouBike 場站資料. | |
/// </summary> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using Newtonsoft.Json; | |
namespace SampleWebApi.Infrastructure.Reposiotry | |
{ | |
public class YouBikeStationModel | |
{ | |
/// <summary> | |
/// 站點代號 | |
/// </summary> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using Newtonsoft.Json; | |
using Newtonsoft.Json.Linq; | |
namespace SampleWebApi.Infrastructure.Reposiotry | |
{ | |
public class YouBikeOriginalModel | |
{ | |
[JsonProperty("retCode")] | |
public int RetuenCode { get; set; } |
NewerOlder