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
namespace ThickClient.SequentialNumber.Tests | |
{ | |
... | |
[TestClass] | |
public class SequentialProviderTest | |
{ | |
[TestMethod] | |
public void CreatsEmptyFile() | |
{ | |
// Arrange |
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
public abstract class ApiCaller | |
{ | |
... | |
public TRecord Get< TRecord >( string url ) | |
{ | |
TRecord item = default( TRecord ); | |
try | |
{ | |
var response = GetHttpClient( ).GetAsync( $"{url}" ).Result; | |
EnsureSuccessStatusCode( response ); |
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
public static class IocKernel | |
{ | |
private static StandardKernel _kernel; | |
private static int _sendingChainDepth; | |
private static FormBase _latestViewModel; | |
public static void SendTo<T>() where T: FormBase | |
{ | |
if (_kernel == null) | |
return; |
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
internal class User: IUser | |
{ | |
async Task<TLoginUserResponse> IUser.LoginUser<TLoginUserDTO, TLoginUserResponse>(TLoginUserDTO loginUserDTO) | |
{ | |
... | |
var loginUserDTODerived = (LoginUserDTO) (ILoginUserDTO) loginUserDTO; | |
var dummy = loginUserDTODerived.NewProp; | |
... |
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
namespace RxSocketTest.TestDoubles.GlobalStates | |
{ | |
using System; | |
using System.Collections.Generic; | |
using System.IO; | |
using System.Net; | |
using System.Threading; | |
using System.Threading.Tasks; | |
using RxSocket; | |
using TestDoubles; |
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
namespace PrimeFactors | |
{ | |
using System; | |
using System.Net.Http; | |
using System.Reactive.Linq; | |
using System.Threading; | |
using System.Threading.Tasks; | |
class ReqresReader | |
{ |
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
private void SetConfigFile(Dictionary<string, string> configParams, string sid) | |
{ | |
Configuration cfg = WebConfigurationManager.OpenWebConfiguration("/"); | |
var destinationConfigurationSection = cfg.GetSection("SAP.Middleware.Connector/ClientSettings/DestinationConfiguration"); | |
var destinationConfigurationType = typeof(RfcDestination).Assembly.GetType("SAP.Middleware.Connector.RfcDestinationConfiguration"); | |
var destinationCollectionType = typeof(RfcDestination).Assembly.GetType("SAP.Middleware.Connector.RfcDestinationCollection"); | |
var destinationParametersType = | |
typeof(RfcDestination).Assembly.GetType("SAP.Middleware.Connector.RfcDestinationParameters"); | |
BindingFlags bindFlags = BindingFlags.Instance | BindingFlags.Public | BindingFlags.NonPublic | | |
BindingFlags.Static; |
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
// Learn more about F# at http://fsharp.org | |
// See the 'F# Tutorial' project for more help. | |
open System | |
open System.Runtime.InteropServices | |
open System.Text | |
type HANDLE = nativeint | |
[<StructLayout(LayoutKind.Sequential)>] | |
type COORD = |
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
namespace PrimeFactors | |
open PrimeFactors | |
open NUnit.Framework | |
open FsUnit | |
open PrimeFactorsMock | |
[<TestFixture>] | |
module PrimeFactorTests = |
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
namespace SqlStuff | |
{ | |
using System.Data.SqlClient; | |
using System; | |
using System.Collections.Generic; | |
public static class Class1 | |
{ | |
public static IEnumerable<IDictionary<String, Object>> ReadStuff(this SqlConnection connection) | |
{ |