public void ReportsPositionWhenExpectedSecondItemInWrongPlace() { var required = new[] { D1, D2, D3 }; var current = new[] { D1, D3, D2 }; Relocation result = OrderChecker.GetNextUsingToMove(required, current); Assert.AreEqual(2, result.From, "Source"); Assert.AreEqual(1, result.To, "Destination"); }
public void TestValidatePhone(string phone, bool expectedResult) { var orderchecker = new OrderChecker(); // Act var actualResult = orderchecker.ValidatePhone(phone); // Assert Assert.AreEqual(expectedResult, actualResult); }
public void TestValidateEmail(string email, bool expectedResult) { var orderchecker = new OrderChecker(); // Act var actualResult = orderchecker.ValidateEmail(email); // Assert Assert.AreEqual(expectedResult, actualResult); }
public void ReturnsNull() { var d1 = new UsingDirective { Namespace = "System" }; var d2 = new UsingDirective { Namespace = "System.Linq" }; var required = new[] { d1, d2 }; var current = new[] { d1, d2 }; Assert.IsNull(OrderChecker.GetNextUsingToMove(required, current)); }
public void OpenPayPal() { string url = ShopSettings.inst.GetComponent <PreparePayment>().API_Success.links[1].href; if (Application.platform == RuntimePlatform.WebGLPlayer) { #if UNITY_WEBGL openWindow(url); #endif } else { Application.OpenURL(url); } OrderChecker newPaymentListener = ShopSettings.inst.gameObject.AddComponent <OrderChecker>(); PreparePayment createPaymentAPI_Call = ShopSettings.inst.GetComponent <PreparePayment>(); PreparePaymentResponse createPaymentResponse = createPaymentAPI_Call.API_Success; newPaymentListener.accessToken = createPaymentAPI_Call.accessToken; newPaymentListener.checkInterval = 10f; newPaymentListener.payID = createPaymentResponse.id; InvokeRepeating("CheckOrderStatus", 1f, 1f); SetStatus(CurrentStatus.WAITING); }
public CoffeeController(OrderChecker orderChecker) { _orderChecker = orderChecker; }
public CoffeeHub(OrderChecker orderChecker) { _orderChecker = orderChecker; }
public CoffeeController(OrderChecker orderChecker, IHttpContextAccessor httpContextAccessor) { _orderChecker = orderChecker; _httpContextAccessor = httpContextAccessor; }
public PizzaController(OrderChecker orderChecker, IHttpContextAccessor httpContextAccessor, IHubContext <PizzaHub> pizzahub) { _orderChecker = orderChecker; _httpContextAccessor = httpContextAccessor; _pizzahub = pizzahub; }
public OrderHub(OrderChecker orderChecker) { _orderChecker = orderChecker; }
public PizzaHub(OrderChecker orderChecker) { _orderChecker = orderChecker; }
public void ReturnsNull() { var empty = new List <UsingDirective>(); Assert.IsNull(OrderChecker.GetNextUsingToMove(empty, empty)); }
public CoffeeHub(OrderChecker orderChecker, ICoffeeManager coffeeManager, AppTenant appTenant) { _orderChecker = orderChecker; _coffeeManager = coffeeManager; _appTenant = appTenant; }
public CoffeeController(OrderChecker orderChecker, ILogger <CoffeeController> logger) { _orderChecker = orderChecker; this.logger = logger; }
public FormController(IFormService formService, IToastNotification toastNotification, OrderChecker orderChecker) { this.formService = formService; this.toastNotification = toastNotification; this._orderChecker = orderChecker; }