C# 클래스 Spontaneous.WebApp.Services.MockedServicelayer

상속: IServicesLayer
파일 보기 프로젝트 열기: pashkov/Spontaneous

공개 메소드들

메소드 설명
AddCouponToDB ( CouponType coupon ) : string
AddNewDish ( Models Dish ) : int
AddNewMenuPartModel ( Models MenuPart ) : int
AddRestaurantBasicToDB ( RestaurantBasicData restaurant ) : string
AddRestaurantToDB ( Models restaurantmodel ) : string
ApproveMeal ( IEnumerable meals ) : void
BasicRestApproveMeal ( List portions ) : void
CalculateDistanceInKm ( LocationModel location1, LocationModel location2 ) : double
CalculateDistanceInRad ( LocationModel location1, LocationModel location2 ) : double
DeleteCoupon ( string id ) : void
GetAllCoupons ( ) : List
GetAllIngredients ( ) : List
GetChainRestaurantsBasicByName ( string name ) : List
GetClosesMedal ( ) : MedalProgress
GetCoupon ( SpontaneousUserModel userData, UserActivity userActivity ) : CouponType
GetCouponById ( string couponId ) : CouponType
GetCouponModelById ( string couponId ) : CouponTypeModel
GetDefaultItems ( System.Web.Security.MembershipUser currentUser, Location userLocation ) : IList
GetDishBasic ( int menuPartId, string restaurantId, int Id ) : Dish
GetGeneralDishById ( string dishId ) : GeneralDish
GetIdByMenuPartName ( string restaurantId, string menuPartName ) : int
GetIngredientById ( string id ) : Ingredient
GetIngredientByNDBNo ( int ndbNo ) : Ingredient
GetLastMedal ( ) : UserMedalModel
GetMedals ( ) : List
GetMenuPartBasic ( int id, string RestaurantId ) : MenuPart
GetProductByLastCharsOfBarcode ( string barcode ) : Models.ProductCatalogViewModel
GetRecipeByPartialName ( string partialName ) : Models.RecipeModel
GetRestaurantBasicById ( string id ) : DataModel.RestaurantBasicData
GetRestaurantBasicByIdFromBackup ( string id ) : RestaurantBasicData
GetRestaurantBasicByName ( string name ) : DataModel.RestaurantBasicData
GetRestaurantById ( string id, string lang ) : Models.RestaurantModel
GetRestaurantByName ( string name ) : Models.RestaurantModel
GetTotalPoints ( ) : int
GetUserLastMeal ( ) : Meal
GetUserLastMealViewModel ( ) : Models.MealViewModel
IngredientSearch ( System.Web.Security.MembershipUser currentUser, Location userLocation, int searchCount, string searchText ) : List
MedalsNotificationCheck ( ) : bool
MockedServicelayer ( ) : System
SaveUserActivity ( UserActivity userActivity ) : void
Search ( System.Web.Security.MembershipUser currentUser, Location userLocation, int searchCount, string searchText, double maxDistance ) : IList
SearchGeneralDish ( System.Web.Security.MembershipUser currentUser, Location userLocation, int searchCount, string searchText ) : List
SearchNearest ( System.Web.Security.MembershipUser currentUser, Location userLocation, int searchCount, double maxDistance ) : IList
TranslateDish ( string restId, int menuPartId, int dishId, string fromLang, string targetlang ) : Dish
TranslateMenuPart ( MenuPart menuPart, string fromLang, string targetlang, bool withMenu ) : MenuPart
TranslateMenuPart ( MenuPartModel menuPartModel, string fromLang, string targetlang, bool withMenu ) : MenuPart
TranslateRestaurant ( string restId, string fromLang, string targetlang, bool withMenu ) : RestaurantBasicData
TurnOffMedalFlag ( ) : bool
UpdateCarbsInLastMeal ( string restaurnatId, int menuPartId, int dishId, double totalCarbohydrate ) : bool
UpdateCompareResult ( RestaurantsCompareList compareList ) : void
UpdateCoupon ( CouponType coupon ) : void
UpdateCoupon ( CouponTypeModel couponModel ) : void
UpdateDish ( Dish Dish, string restaurantId, int menuPartId ) : void
UpdateDish ( Models Dish ) : void
UpdateDishAndCarbs ( Models Dish ) : void
UpdateDishCarbs ( System user, string restournatId, int menuPartId, int dishId, double totalCarbohydrate ) : bool
UpdatePostMealSugar ( int sugarLevel ) : void
UpdatePreMealSugar ( int sugarLevel, int targetSugar ) : void
UpdateRestaurant ( Models restaurantmodel ) : void
UploadImageToDish ( string restId, int menuPartId, int dishId, HttpPostedFileBase file ) : void
UserLastMealCompleteRequirement ( ) : bool
UserUpdateRestaurant ( Models restaurantmodel ) : void
VerifyUserLastMeal ( ) : double

비공개 메소드들

메소드 설명
GetMockedSearchableItems ( ) : List
SetUpEmptySearch ( Mock mocked ) : void
SetUpSearch ( Mock mocked ) : void
SetupGetDefaultItems ( Mock mocked ) : void

메소드 상세

AddCouponToDB() 공개 메소드

public AddCouponToDB ( CouponType coupon ) : string
coupon Spontaneous.DataModel.CouponType
리턴 string

AddNewDish() 공개 메소드

public AddNewDish ( Models Dish ) : int
Dish Models
리턴 int

AddNewMenuPartModel() 공개 메소드

public AddNewMenuPartModel ( Models MenuPart ) : int
MenuPart Models
리턴 int

AddRestaurantBasicToDB() 공개 메소드

public AddRestaurantBasicToDB ( RestaurantBasicData restaurant ) : string
restaurant Spontaneous.DataModel.RestaurantBasicData
리턴 string

AddRestaurantToDB() 공개 메소드

public AddRestaurantToDB ( Models restaurantmodel ) : string
restaurantmodel Models
리턴 string

ApproveMeal() 공개 메소드

public ApproveMeal ( IEnumerable meals ) : void
meals IEnumerable
리턴 void

BasicRestApproveMeal() 공개 메소드

public BasicRestApproveMeal ( List portions ) : void
portions List
리턴 void

CalculateDistanceInKm() 공개 메소드

public CalculateDistanceInKm ( LocationModel location1, LocationModel location2 ) : double
location1 Spontaneous.WebApp.Models.LocationModel
location2 Spontaneous.WebApp.Models.LocationModel
리턴 double

CalculateDistanceInRad() 공개 메소드

public CalculateDistanceInRad ( LocationModel location1, LocationModel location2 ) : double
location1 Spontaneous.WebApp.Models.LocationModel
location2 Spontaneous.WebApp.Models.LocationModel
리턴 double

DeleteCoupon() 공개 메소드

public DeleteCoupon ( string id ) : void
id string
리턴 void

GetAllCoupons() 공개 메소드

public GetAllCoupons ( ) : List
리턴 List

GetAllIngredients() 공개 메소드

public GetAllIngredients ( ) : List
리턴 List

GetChainRestaurantsBasicByName() 공개 메소드

public GetChainRestaurantsBasicByName ( string name ) : List
name string
리턴 List

GetClosesMedal() 공개 메소드

public GetClosesMedal ( ) : MedalProgress
리턴 Spontaneous.DataModel.MedalProgress

GetCoupon() 공개 메소드

public GetCoupon ( SpontaneousUserModel userData, UserActivity userActivity ) : CouponType
userData Spontaneous.DataModel.SpontaneousUserModel
userActivity Spontaneous.DataModel.UserActivity
리턴 Spontaneous.DataModel.CouponType

GetCouponById() 공개 메소드

public GetCouponById ( string couponId ) : CouponType
couponId string
리턴 Spontaneous.DataModel.CouponType

GetCouponModelById() 공개 메소드

public GetCouponModelById ( string couponId ) : CouponTypeModel
couponId string
리턴 Spontaneous.WebApp.Models.CouponTypeModel

GetDefaultItems() 공개 메소드

public GetDefaultItems ( System.Web.Security.MembershipUser currentUser, Location userLocation ) : IList
currentUser System.Web.Security.MembershipUser
userLocation Spontaneous.DataModel.Location
리턴 IList

GetDishBasic() 공개 메소드

public GetDishBasic ( int menuPartId, string restaurantId, int Id ) : Dish
menuPartId int
restaurantId string
Id int
리턴 Spontaneous.DataModel.Dish

GetGeneralDishById() 공개 메소드

public GetGeneralDishById ( string dishId ) : GeneralDish
dishId string
리턴 Spontaneous.DataModel.GeneralDish

GetIdByMenuPartName() 공개 메소드

public GetIdByMenuPartName ( string restaurantId, string menuPartName ) : int
restaurantId string
menuPartName string
리턴 int

GetIngredientById() 공개 메소드

public GetIngredientById ( string id ) : Ingredient
id string
리턴 Spontaneous.DataModel.Ingredient

GetIngredientByNDBNo() 공개 메소드

public GetIngredientByNDBNo ( int ndbNo ) : Ingredient
ndbNo int
리턴 Spontaneous.DataModel.Ingredient

GetLastMedal() 공개 메소드

public GetLastMedal ( ) : UserMedalModel
리턴 Spontaneous.WebApp.Models.UserMedalModel

GetMedals() 공개 메소드

public GetMedals ( ) : List
리턴 List

GetMenuPartBasic() 공개 메소드

public GetMenuPartBasic ( int id, string RestaurantId ) : MenuPart
id int
RestaurantId string
리턴 Spontaneous.DataModel.MenuPart

GetProductByLastCharsOfBarcode() 공개 메소드

public GetProductByLastCharsOfBarcode ( string barcode ) : Models.ProductCatalogViewModel
barcode string
리턴 Models.ProductCatalogViewModel

GetRecipeByPartialName() 공개 메소드

public GetRecipeByPartialName ( string partialName ) : Models.RecipeModel
partialName string
리턴 Models.RecipeModel

GetRestaurantBasicById() 공개 메소드

public GetRestaurantBasicById ( string id ) : DataModel.RestaurantBasicData
id string
리턴 DataModel.RestaurantBasicData

GetRestaurantBasicByIdFromBackup() 공개 메소드

public GetRestaurantBasicByIdFromBackup ( string id ) : RestaurantBasicData
id string
리턴 Spontaneous.DataModel.RestaurantBasicData

GetRestaurantBasicByName() 공개 메소드

public GetRestaurantBasicByName ( string name ) : DataModel.RestaurantBasicData
name string
리턴 DataModel.RestaurantBasicData

GetRestaurantById() 공개 메소드

public GetRestaurantById ( string id, string lang ) : Models.RestaurantModel
id string
lang string
리턴 Models.RestaurantModel

GetRestaurantByName() 공개 메소드

public GetRestaurantByName ( string name ) : Models.RestaurantModel
name string
리턴 Models.RestaurantModel

GetTotalPoints() 공개 메소드

public GetTotalPoints ( ) : int
리턴 int

GetUserLastMeal() 공개 메소드

public GetUserLastMeal ( ) : Meal
리턴 Spontaneous.DataModel.Meal

GetUserLastMealViewModel() 공개 메소드

public GetUserLastMealViewModel ( ) : Models.MealViewModel
리턴 Models.MealViewModel

IngredientSearch() 공개 메소드

public IngredientSearch ( System.Web.Security.MembershipUser currentUser, Location userLocation, int searchCount, string searchText ) : List
currentUser System.Web.Security.MembershipUser
userLocation Spontaneous.DataModel.Location
searchCount int
searchText string
리턴 List

MedalsNotificationCheck() 공개 메소드

public MedalsNotificationCheck ( ) : bool
리턴 bool

MockedServicelayer() 공개 메소드

public MockedServicelayer ( ) : System
리턴 System

SaveUserActivity() 공개 메소드

public SaveUserActivity ( UserActivity userActivity ) : void
userActivity Spontaneous.DataModel.UserActivity
리턴 void

Search() 공개 메소드

public Search ( System.Web.Security.MembershipUser currentUser, Location userLocation, int searchCount, string searchText, double maxDistance ) : IList
currentUser System.Web.Security.MembershipUser
userLocation Spontaneous.DataModel.Location
searchCount int
searchText string
maxDistance double
리턴 IList

SearchGeneralDish() 공개 메소드

public SearchGeneralDish ( System.Web.Security.MembershipUser currentUser, Location userLocation, int searchCount, string searchText ) : List
currentUser System.Web.Security.MembershipUser
userLocation Spontaneous.DataModel.Location
searchCount int
searchText string
리턴 List

SearchNearest() 공개 메소드

public SearchNearest ( System.Web.Security.MembershipUser currentUser, Location userLocation, int searchCount, double maxDistance ) : IList
currentUser System.Web.Security.MembershipUser
userLocation Spontaneous.DataModel.Location
searchCount int
maxDistance double
리턴 IList

TranslateDish() 공개 메소드

public TranslateDish ( string restId, int menuPartId, int dishId, string fromLang, string targetlang ) : Dish
restId string
menuPartId int
dishId int
fromLang string
targetlang string
리턴 Dish

TranslateMenuPart() 공개 메소드

public TranslateMenuPart ( MenuPart menuPart, string fromLang, string targetlang, bool withMenu ) : MenuPart
menuPart MenuPart
fromLang string
targetlang string
withMenu bool
리턴 MenuPart

TranslateMenuPart() 공개 메소드

public TranslateMenuPart ( MenuPartModel menuPartModel, string fromLang, string targetlang, bool withMenu ) : MenuPart
menuPartModel MenuPartModel
fromLang string
targetlang string
withMenu bool
리턴 MenuPart

TranslateRestaurant() 공개 메소드

public TranslateRestaurant ( string restId, string fromLang, string targetlang, bool withMenu ) : RestaurantBasicData
restId string
fromLang string
targetlang string
withMenu bool
리턴 RestaurantBasicData

TurnOffMedalFlag() 공개 메소드

public TurnOffMedalFlag ( ) : bool
리턴 bool

UpdateCarbsInLastMeal() 공개 메소드

public UpdateCarbsInLastMeal ( string restaurnatId, int menuPartId, int dishId, double totalCarbohydrate ) : bool
restaurnatId string
menuPartId int
dishId int
totalCarbohydrate double
리턴 bool

UpdateCompareResult() 공개 메소드

public UpdateCompareResult ( RestaurantsCompareList compareList ) : void
compareList RestaurantsCompareList
리턴 void

UpdateCoupon() 공개 메소드

public UpdateCoupon ( CouponType coupon ) : void
coupon CouponType
리턴 void

UpdateCoupon() 공개 메소드

public UpdateCoupon ( CouponTypeModel couponModel ) : void
couponModel CouponTypeModel
리턴 void

UpdateDish() 공개 메소드

public UpdateDish ( Dish Dish, string restaurantId, int menuPartId ) : void
Dish Dish
restaurantId string
menuPartId int
리턴 void

UpdateDish() 공개 메소드

public UpdateDish ( Models Dish ) : void
Dish Models
리턴 void

UpdateDishAndCarbs() 공개 메소드

public UpdateDishAndCarbs ( Models Dish ) : void
Dish Models
리턴 void

UpdateDishCarbs() 공개 메소드

public UpdateDishCarbs ( System user, string restournatId, int menuPartId, int dishId, double totalCarbohydrate ) : bool
user System
restournatId string
menuPartId int
dishId int
totalCarbohydrate double
리턴 bool

UpdatePostMealSugar() 공개 메소드

public UpdatePostMealSugar ( int sugarLevel ) : void
sugarLevel int
리턴 void

UpdatePreMealSugar() 공개 메소드

public UpdatePreMealSugar ( int sugarLevel, int targetSugar ) : void
sugarLevel int
targetSugar int
리턴 void

UpdateRestaurant() 공개 메소드

public UpdateRestaurant ( Models restaurantmodel ) : void
restaurantmodel Models
리턴 void

UploadImageToDish() 공개 메소드

public UploadImageToDish ( string restId, int menuPartId, int dishId, HttpPostedFileBase file ) : void
restId string
menuPartId int
dishId int
file HttpPostedFileBase
리턴 void

UserLastMealCompleteRequirement() 공개 메소드

public UserLastMealCompleteRequirement ( ) : bool
리턴 bool

UserUpdateRestaurant() 공개 메소드

public UserUpdateRestaurant ( Models restaurantmodel ) : void
restaurantmodel Models
리턴 void

VerifyUserLastMeal() 공개 메소드

public VerifyUserLastMeal ( ) : double
리턴 double