content
stringlengths
23
1.05M
using EadAdmin.Domain.Courses; namespace EadAdmin.DomainTest.CourseTest { public interface ICourseRepository { void AddCourse(Course course); Course AddCourseByName(string courseName); } }
using Newtonsoft.Json; namespace Tweetinvi.Streams.Model.AccountActivity { public class AccountActivityTweetDeletedEventStatusDTO { [JsonProperty("id")] public long TweetId { get; set; } [JsonProperty("user_id")] public long UserId { get; set; } } }
using System; using System.Threading; using System.Threading.Tasks; using SteveTheTradeBot.Core.Framework.CommandQuery; using SteveTheTradeBot.Core.Framework.Mappers; using SteveTheTradeBot.Dal.Persistence; using SteveTheTradeBot.Dal.Validation; namespace SteveTheTradeBot.Core.Components.Projects { publi...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using lm.Comol.Core.Authentication; namespace lm.Comol.Core.BaseModules.AuthenticationManagement.Presentation { public interface IViewProfileDisabled : IViewBaseAuthenticationPages { Boolean AllowInternalAuthenticati...
using System.Collections.Generic; namespace Ritter.Atlas { public static class UnitedStates { private static readonly GeographyProvider Provider = new GeographyProvider(ResourceContainer.FromAssembly(typeof(UnitedStates).Assembly)); public static IEnumerable<State> States() ...
using System.Text.RegularExpressions; namespace EventFeedback.Common { public static partial class Extensions { public static bool Match(this string value, string pattern) { var regex = new Regex(pattern); return regex.IsMatch(value); } } }
using System; class Solution { static void printArray<Element>(Element[] array) { foreach (var element in array) { Console.WriteLine(element); } } static void Main(String[] args) { var vInt = new int[] { 1, 2, 3 }; var vString = new string[] { "H...
using System; using UIKit; namespace iCunOS.BillBoards { public class AboutViewController : BaseViewController { public AboutViewController () { } public override void ViewDidLoad () { base.ViewDidLoad (); View.BackgroundColor = UIColor.White; Title = "About Us"; } } }
 using System; namespace Enjoy.Core.UIElements { public class DatePickerUIElement : UIElement<string> { private const string DATA_LINK_FORMAT_DATE = "yyyy-MM-dd"; private const string DATA_LINK_FORMAT_TIME = "hh:ii"; public DatePickerUIElement( string name, st...
#region License // Copyright (c) Newtonsoft. All Rights Reserved. // License: https://raw.github.com/JamesNK/Newtonsoft.Json.Schema/master/LICENSE.md #endregion using System; using System.Collections.Generic; using System.Diagnostics; namespace Newtonsoft.Json.Schema.Infrastructure.Discovery { [DebuggerDisplay("{...
using System; namespace LumiSoft.Net.Mime { // Token: 0x0200015B RID: 347 [Obsolete("See LumiSoft.Net.MIME or LumiSoft.Net.Mail namepaces for replacement.")] public enum ContentDisposition_enum { // Token: 0x040005DF RID: 1503 Attachment, // Token: 0x040005E0 RID: 1504 Inline, // Token: 0x04...
using Notex.Core.Configuration; using Notex.Messages.Notes.Commands; namespace Notex.Core.Aggregates.Notes.CommandHandlers; public class CloneNoteCommandHandler : ICommandHandler<CloneNoteCommand, Guid> { private readonly ICurrentUser _currentUser; private readonly IAggregateRepository _aggregateRepository; ...
using cirno.Geometry; using Microsoft.VisualStudio.TestTools.UnitTesting; using static cirno.Tests.Geometry.GeometryTestHelper; namespace cirno.Tests.Geometry { [TestClass] public class CircleIntersection { [TestMethod] public void TestCircleCircleIntersect() { var c1 = new Circle(...
using System; using System.Collections.Generic; using TravelGuide.Models.Stories; namespace TravelGuide.Services.Stories.Contracts { public interface IStoryService { void DeleteComment(Guid commentId); void AddComment(Guid storyId, string userId, string content); void ToggleLike(Guid...
namespace SoundFingerprinting.Audio { public interface ITagService { TagInfo GetTagInfo(string pathToAudioFile); } }
using System; using MvvmCross.Logging; using MvvmCross.Tests; using Xunit.Abstractions; namespace MvvmCross.UnitTest.Common { public class XunitTestLogger : TestLogger { private readonly string _name; private readonly ITestOutputHelper _testOuputHelper; public XunitTestLogger(string n...
using System; namespace TAlex.MathCore.Statistics.Distributions { /// <summary> /// Represents the normal distribution. /// </summary> public class NormalDistribution : Distribution { #region Fields private double _mean; private double _stdev; /// <summary> ...
namespace Microsoft.ApplicationInsights.AspNetCore.Tests.TelemetryInitializers { using System; using System.Globalization; using Helpers; using Microsoft.ApplicationInsights.AspNetCore.TelemetryInitializers; using Microsoft.ApplicationInsights.DataContracts; using Microsoft.ApplicationInsights....
using Discord; using Discord.WebSocket; using Raven.Client.Documents; using System.Threading.Tasks; namespace Valerie.Handlers { public class MainHandler { IDocumentStore Store { get; } ConfigHandler Config { get; } EventsHandler Events { get; } DiscordSocketClient ...
using System; namespace Radical { /// <summary> /// Extension methods for IServiceProvider /// </summary> public static class IServiceProviderExtensions { /// <summary> /// Gets the service. /// </summary> /// <typeparam name="TService">The type of the service.</typ...
using System.Collections; using System.Collections.Generic; using UnityEngine; [RequireComponent(typeof(Rigidbody))] public class Item : MonoBehaviour { public BrokenItemObject type = null; public GameObject ObjectToApper; Renderer rendererer; Material material; Color colour; Rigidbody rigidbo...
namespace VMCore.Assembler { public class SectionInfo { public BinSections SectionId { get; } public int StartPosition { get; } public int Length { get; } public SectionInfo(BinSections aSecId, int aStartPos, int aLength) { SectionId = aSecId; ...
using Microsoft.TemplateSearch.TemplateDiscovery.PackProviders; namespace Microsoft.TemplateSearch.TemplateDiscovery.Nuget { public class NugetPackInfo : IInstalledPackInfo { public string VersionedPackageIdentity { get; set; } public string Id { get; set; } public string V...
using System; using System.Collections; using System.Collections.Generic; using UnityEngine; using TMPro; public class GoldPopup : MonoBehaviour { [SerializeField] public Transform goldGainPopup; public float lifeTime; private float _livedTime = 0f; public GoldPopup Create(Vector2 position, int...
using System; using System.Collections.Generic; using Monkey.Shared; using Object = Monkey.Shared.Object; namespace Monkey { public partial class Compiler { private CompilerState CompileStatements(List<Statement> statements, CompilerState previousState) { var newState = Factory.Com...
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using RiotSharp.Endpoints.MatchEndpoint; namespace LoLStatsAPIv4_GUI { public class PlayerList : IEnumerable { private List<Player> UnassignedPlayers; ...
@inject AppTenant Tenant; @using AspNetMvcSample @using AspNetMvcSample.Models @using AspNetMvcSample.ViewModels.Account @using AspNetMvcSample.ViewModels.Manage @using Microsoft.AspNetCore.Identity @using Microsoft.AspNetCore.Http; @using SaasKit.Multitenancy; @addTagHelper *, Microsoft.AspNetCore.Mvc.TagHe...
using System; using System.Xml.Serialization; namespace Aop.Api.Response { /// <summary> /// AnttechBlockchainDefinSaasAgreementQueryResponse. /// </summary> public class AnttechBlockchainDefinSaasAgreementQueryResponse : AopResponse { /// <summary> /// 是否有效 /// ...
using System; using System.Collections.Generic; using System.Text.Json; using System.Threading.Tasks; using GenHTTP.Api.Content; using GenHTTP.Api.Protocol; using GenHTTP.Modules.Basics; using GenHTTP.Modules.Conversion.Providers.Json; using GenHTTP.Modules.DirectoryBrowsing; using GenHTTP.Modules.IO; us...
using System; using MikhailKhalizev.Processor.x86.BinToCSharp; namespace MikhailKhalizev.Max.Program { public partial class RawProgram { [MethodInfo("0x1008_9324-56e1bb25")] public void Method_1008_9324() { ii(0x1008_9324, 5); push(0x24); ...
@{ ViewData["Title"] = "Code"; ViewData["LevelName"] = "Code"; ViewData["InputPlaceholder"] = "Find the key"; } @section Scripts{ <script src="~/js/code.js"></script> } <div class="container w-4 m-auto text-center p-3"> <div class="container w-4 m-auto text-center p-3"> <h3 class="s-0" ...
using System.Collections.Generic; using Project0.StoreApplication.Domain.Abstracts; using Project0.StoreApplication.Domain.Interfaces; using Project0.StoreApplication.Storage.Adapters; using Project0.StoreApplication.Domain.Models; using Project0.StoreApplication.Storage.Models; using Microsoft.EntityFrameworkCore; usi...
using System; using UnityEngine; using UnityEngine.UI; namespace FineGameDesign.Utils { [RequireComponent(typeof(Button))] public abstract class AEventButton<T> : MonoBehaviour where T : AEventButton<T> { public static event Action<T> onClick; private Button m_Button; priv...
using System.Linq; using System.Threading.Tasks; using Demo.Domain; using EventStore; namespace Demo { public class MeterRepository : IMeterRepository { private readonly IEventStore _eventStore; public MeterRepository(IEventStore eventStore) { _eventStore = eventStore; ...
namespace KJU.Core.Compiler { using System.Collections.Generic; using AST; public class Artifacts { public Artifacts(Node ast, IEnumerable<string> asm) { this.Ast = ast; this.Asm = asm; } public Node Ast { get; } public IEnumerable<strin...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using Correspondence.Mementos; namespace Correspondence.Strategy { public class SaveResult { public bool WasSaved { get; set; } public FactID Id { get; set; } } }
using System; namespace SFA.DAS.ApprenticeFeedback.Application.Commands.CreateApprenticeFeedback { public class CreateApprenticeFeedbackResponse { public Guid ApprenticeFeedbackResultId { get; set; } } }
using System.Collections.Generic; using System.Linq; using JM.LinqFaster; using NUnit.Framework; using static Tests.Test; namespace Tests { [TestFixture] internal class ContainsTests { [Test] public void ContainsStringArrayTrue() { bool a = stringArray.ContainsF("0"...
using System; using System.IO; using System.Xml; using System.Xml.Linq; using System.Xml.Serialization; using BenchmarkDotNet.Attributes; using BenchmarkDotNet.Order; namespace StackXML.Benchmark { [Orderer(SummaryOrderPolicy.FastestToSlowest)] [MemoryDiagnoser] [RPlotExporter] [BenchmarkCategory(nameo...
using System; using System.Collections; using System.Collections.Generic; using UnityEngine; using TMPro; using UnityEngine.UI; public class ConstellationItem : MonoBehaviour { ConstellationsController constellationsController; [SerializeField] private GameObject selectedIcon; [SerializeField] ...
using System; using Helios.Common.Extensions; namespace Caasiope.P2P { public interface IChannel { void Broadcast(byte[] data); void Send(ISession peer, byte[] data); void OnReceived(Action<ISession, byte[]> callback); byte GetChannelByte(); void OnReceived(ISession ses...
namespace LccHotfix { public static class ItemTypeExpand { public static string ToItemString(this ItemType type) { return $"{type}Item"; } } }
using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; using System.Linq; using System.Text; using System.Threading.Tasks; namespace DataAccessLayer.Models.School { public class SchoolTeacher : IEntity { public S...
using System.Collections; using System.Collections.Generic; using UnityEngine; public class Load : MonoBehaviour { public bool isGenerated = false; public int typeMethod; public GameObject prefabRL; public GameObject prefabMAM; public GameObject prefabACO; // Start is called before the first ...
namespace Abacus { using System; using System.Collections; using System.Collections.Generic; using System.Diagnostics; using System.Globalization; using System.Linq; using System.Linq.Expressions; using System.Reflection; using BF = System.Reflection.BindingFlags; using static S...
using System; namespace SharedCode { public interface IExperimentHardware { void Initialise(ExperimentParameters p); DataSet Run(); void Dispose(); } }
// Copyright 2019 Google Inc. All Rights Reserved. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applica...
using ExtendedXmlSerializer.ContentModel.Reflection; using ExtendedXmlSerializer.Core; using ExtendedXmlSerializer.ReflectionModel; namespace ExtendedXmlSerializer.ExtensionModel.Types { /// <summary> /// A default extension that defines the type model used for the selection, location, and instantiation of types. /...
using UnityEngine; public class DisplayMetricsAndroid { public static bool IsAndroid { get; protected set; } // The logical density of the display public static float Density { get; protected set; } // The screen density expressed as dots-per-inch public static float DensityDPI { get; protected set; } // T...
using System.Collections.Generic; using System.Diagnostics; using System.Linq; using RimWorld; using Verse; namespace CompVehicle { internal class Recipe_RepairVehicle : RecipeWorker { //public override string GetLabelWhenUsedOn(Pawn pawn, BodyPartRecord part) //{ // if (pawn?.GetC...
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace UnicodeCharacters { class UnicodeCharacters { static void Main() { Console.WriteLine("write your message"); string message = Console.ReadLine();...
using System; /* Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, softwar...
using RazorTechnologies.Core.Common; using RazorTechnologies.TagHelpers.Common; using RazorTechnologies.TagHelpers.Core.BindingGateway; using RazorTechnologies.TagHelpers.LayoutManager.Controls; using RazorTechnologies.TagHelpers.LayoutManager.Generator; using RazorTechnologies.TagHelpers.LayoutManager.Models.Html; n...
using OpenBots.Commands.System.Forms; using OpenBots.Core.Attributes.PropertyAttributes; using OpenBots.Core.Command; using OpenBots.Core.Enums; using OpenBots.Core.Infrastructure; using OpenBots.Core.Properties; using OpenBots.Core.UI.Controls; using OpenBots.Core.Utilities.CommonUtilities; using OpenBots.Engine; usi...
using Tekly.Balance; using Tekly.DataModels.Models; using UnityEngine; namespace TeklySample.App { public class AppModel : ObjectModel { private readonly StringValueModel m_version = new StringValueModel(Application.version); public AppModel(BalanceManager balanceManager) { ...
using HoloToolkit.Unity.InputModule; using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.Windows.Speech; public class GazeCallback : GazeCast { [SerializeField] private GameObject speakor; [SerializeField] private GameObject voiceInput; [SerializeField]...
using System.Collections; using System.Collections.Generic; using UnityEngine; namespace Buck.PocketGarden { [CreateAssetMenu(fileName = "PlantConfiguration", menuName = "Buck/PlantConfiguration", order = 1)] public class PlantConfiguration : ScriptableObject { [Header("Prefabs")] public s...
// Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. using System; using System.IO; namespace DocumentFormat.OpenXml { internal static class StreamCopyExtensions { public static void CopyTo(this Stream s...
@model Systrade.Aplicacao.ViewModel.SenhaViewModel <div class="form-horizontal"> <div class="form-group"> @Html.LabelFor(m => m.Password, new { @class = "col-sm-12 col-form-label required" }) <div class="col-md-12"> @Html.PasswordFor(m => m.Password, new { @class = "form-control", pla...
namespace WM.AspNetMvc.Models { public static class Constants { public static string AdminRoleName = "Admin"; } }
using iTextSharp.text; namespace SportscardSystem.PdfExporter.Utils.Contracts { public interface IPdfStream { Document Document { get; } void Init(string fileName); } }
using Newtonsoft.Json; namespace FiveRingsDb.Models { public class PrintedCard { [JsonProperty("id")] public string Id { get; set; } [JsonProperty("illustrator")] public string Illustrator { get; set; } [JsonProperty("image_url")] public string ImageUrl { get;...
using Fan.Blog.Helpers; using Fan.Blog.Services.Interfaces; using Fan.Widgets; using Microsoft.AspNetCore.Http; using Microsoft.AspNetCore.Mvc; using System; using System.Collections.Generic; using System.Threading.Tasks; namespace RecentBlogPosts.Components { public class RecentBlogPostsViewComponent : ViewCompo...
using System; using System.Collections.Generic; using System.IO; using System.Linq; using System.Text; using System.Text.RegularExpressions; using System.Threading.Tasks; using NCScanner.Settings; using NCScanner.DataTypes; using NCScanner.Resources; using NCScanner.Services.Interfaces; namespace NCScanner.Services....
using System; using System.Windows.Controls; using System.Windows.Input; using System.Windows.Media; using System.Windows.Media.Effects; namespace PythonEnv.pages { /// <summary> /// data.xaml 的交互逻辑 /// </summary> public partial class data : Page { public data() { Initi...
using System.Collections.Generic; using System.Xml; using System.Xml.Linq; using System.Xml.Schema; using System.Xml.Serialization; namespace Sekhmet.Serialization.XmlSerializerSupport.Test.XmlSerializableUsingXmlSerializer { [XmlRoot("XmlSerializableFooUsingXmlSerializer")] public class XmlSerializableFooUsin...
using ApeVolo.Common.DI; using ApeVolo.Entity.Do.Base; using SqlSugar; namespace ApeVolo.Entity.Do.Tasks; /// <summary> /// 系统作业调度执行日志 /// </summary> [SugarTable("sys_quartz_job_log", "系统作业调度执行日志")] public class QuartzNetLog : EntityRoot<long>, ILocalizedTable { /// <summary> /// 任务Id /// </summary> ...
using System; using EFDI.ApplicationTask.Model.Contracts; using Microsoft.AspNetCore.Mvc; using Microsoft.Extensions.Logging; namespace EFDI.ApplicationTask.Controllers { [ApiController] [Route("[controller]")] public class DetectController : Controller { private readonly IDetectionService _det...
 namespace AbstractFactory.Instance.Interface { /// <summary> /// Снайпер банды. /// </summary> public interface ISniper : IHumanBeing { /// <summary> /// Занять снайперскую позицию. /// </summary> /// <returns>Сообщение о статусе занятия позиции.</returns> string TakeAim(); } }
using System; using UnityEngine; namespace GSStorm.RPG.Engine{ public class CharacterFactory <S_T, R_T> : BaseFactory<S_T, R_T> where S_T : CharacterTemplate where R_T : Character, new() { public override R_T Produce(string typeId){ S_T template = _loadedTemplates[typeId]; if (template ...
using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.InputSystem; public class PlayerNavigation : MonoBehaviour { [SerializeField] private float _speed = 3f; [Header("References")] public Transform mainCamera = null; public void Move(InputAction.CallbackContext contex...
using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; using Photon.Pun; public class PlayerTriggerView : MonoBehaviourPunCallbacks, IPunObservable { public PhotonView view; public Text text; public float triggerVal; public void Start() ...
using FluentAssertions; using NUnit.Framework; namespace Hatchet.Tests.ParserTests { [TestFixture] public class SingleValueTests { [Test] public void Parse_SingleWorld_ReturnsString() { // Arrange var input = "awesome"; var parser = new Parser()...
using System.Collections.Generic; namespace RPSLS.Game.Multiplayer.Models { public class Leaderboard { public IEnumerable<LeaderboardEntry> Players { get; set; } } }
//Builds the preview data of the asset for the Asset Browser function AssetBrowser::build_AssetPreview(%this, %assetDef, %previewData) { %previewData.assetName = %assetDef.assetName; %previewData.assetPath = ""; %previewData.doubleClickCommand = ""; %previewData.previewImage = "tools/assetBrowser/art/g...
namespace AggregateSnapshotStore.MySQL { internal class SnapshotData { public string AggregateRootId { get; set; } public string AggregateRootTypeName { get; set; } public int Version { get; set; } public byte[] Data { get; set; } } }
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading; namespace Recipe5 { class Program { static void Main(string[] args) { Console.WriteLine("Starting program..."); var t1 =new Thread(PrintNumbersWithStatus); ...
using System; using System.Collections.Generic; using System.Reflection; namespace OmniSharp.Services { public interface IAssemblyLoader { Assembly Load(AssemblyName name); IReadOnlyList<Assembly> LoadAllFrom(string folderPath); Assembly LoadFrom(string assemblyPath, bool dontLockAss...
namespace Unitverse.Core.Options { public interface INamingOptions { string CanCallNamingPattern { get; } string CanConstructNamingPattern { get; } string CannotConstructWithNullNamingPattern { get; } string CannotConstructWithInvalidNamingPattern { get; } string Can...
using System.Collections.Generic; using Android.Content.Res; using Android.Graphics; using Repository.Common.Collections; using Repository.Editor.Android; using Repository.Internal.Collections; namespace Repository.Internal.Editor { internal class TypefaceProvider : ITypefaceProvider { private static ...
using Microsoft.VisualStudio.TestTools.UnitTesting; using DatabaseSchemaReader; namespace DatabaseSchemaReaderTest.IntegrationTests { /// <summary> /// These are INTEGRATION tests using databases. /// The following databases should exist on localhost: /// SqlExpress with Northwind (integrated secur...
namespace Sqwatch.Models { public enum ExistingFileOperation { Fail, Append, Overwrite } }
namespace Hangman.Services { using System; using System.Linq; using Contracts; using Data.Repositories; using Models; public class WordService : IWordService { IRepository<Word> words; public WordService(IRepository<Word> words) { this.words = words; ...
using System; using System.Collections.Generic; using Machine.Specifications; namespace FluentCommandLineParser.Tests { namespace CommandLineParserEngineTests { [Behaviors] public class NoResultsBehaviour { protected static Exception error; protected static IEnu...
using UnityEngine; using UnityEditor; public class SpriteAnimationTool : EditorWindow { private new string name = ""; private GameObject model; [MenuItem("Window/SpriteAnimationTool")] private static void Init() { SpriteAnimationTool window = (SpriteAnimationTool)EditorWindow.GetWindow(typeof...
//------------------------------------------------------------------------------ // <自动生成> // 此代码由工具生成。 // // 对此文件的更改可能导致不正确的行为,如果 // 重新生成代码,则所做更改将丢失。 // </自动生成> //------------------------------------------------------------------------------ namespace TygaSoft.Web.Manages.Base { public part...
using Volo.Abp.Localization; namespace EShopOnAbp.BasketService.Localization { [LocalizationResourceName("BasketService")] public class BasketServiceResource { } }
using System.Collections.Generic; using System.Linq; using UnityEngine; namespace Assets.Scripts.Utils { public class PlatformUIObject : MonoBehaviour { public List<RuntimePlatform> Platforms; public bool IsForceVisible; public void OnEnable() { UpdateVisibility(); } private void UpdateVisibi...
using System.Collections.Generic; using Web.Model; namespace Web.Repository { public interface INameRankRepository { IEnumerable<string> GetAllNames(); IEnumerable<NameRank> GetByName(string name); IEnumerable<NameRank> GetByYear(int year, Sex sex); IEnumerable<NameByYear> GetS...
using System; using System.Collections.Generic; using System.Xml.Serialization; namespace DotOPDS.Dto; public class FeedEntry { [XmlElement("updated")] public string Updated { get; set; } = DateTime.UtcNow.ToString("s"); [XmlElement("id")] public string? Id { get; set; } [XmlElement("title")] ...
using System.Threading.Tasks; using FluentAssertions; using GH.DD.ConfigRetriever.Attributes; using Moq; using NUnit.Framework; namespace GH.DD.ConfigRetriever.Tests { public class ConfigRetrieverTests { [Test] public void Fill_AvailableInRetriever() { string value; ...
using System; using UnityEngine; using System.Collections.Generic; using System.IO; using System.Reflection; using Newtonsoft.Json; using Newtonsoft.Json.Linq; using System.Collections; public class JSONOverridableBoolRule : JSONRule<OverridableBool> { public override object New(JsonHelperReader json, Type type)...
namespace PoleStat { internal interface IStatisticsPage { DisplayMessage GetMessage(); } }
using NUnit.Framework; using TrueOrFalse.Tests; public class QuestionAnswerPersistenceTests : BaseTest { [Test] public void Persistence_Test() { var answer = new Answer(); answer.Question = ContextQuestion.GetQuestion(); answer.MillisecondsSinceQuestionView = 100; ...
using NP.Utilities; using System.ComponentModel; namespace NP.LocalizationPrototype { public class Data : VMBase { private static int _sid = 0; private int _id = ++_sid; public int ID { get { return _id; } } #region Uid Property private string _uid; public string Uid ...
using NUnit.Framework; using System; using MetadataDatabase.Controllers; using Microsoft.AspNetCore.Mvc; using MetadataDatabase.Repository; using Moq; using System.Text.RegularExpressions; namespace MetadataDatabase { [TestFixture] public class VersionControllerUnitTests { [Test] public voi...
using System; using DbFramework.DbCommands; using NSubstitute; using NUnit.Framework; namespace DbFramework.Tests.UnitTests.DbCommands { [TestFixture] public class NonQueryInvokerCompositeTests { [Test] public void AddSameCommandTwice_ExpectCountEqualsOne() { var commandStub = Substitute.For<INonQueryComm...
using System.Timers; namespace CardGame_Heroes.Kernel.Components { public struct GameStateComponent { public GameStates State { get; set; } public Timer stateTimer { get; set; } } }
using System; namespace EventBus { internal class AnonymousSubscriber<T> : Subscriber { public AnonymousSubscriber( Action<T> action, ThreadMode threadMode, bool stack, IThreadHelper threadHelper) : base(Description.FromGeneric<T>(threadMode,...
using UnityEngine; using System.Collections; public class MapController : MonoBehaviour { public GameObject srcHex; public GameObject dstHex; public HexController srcHexController; public HexController dstHexController; public GameState gameState; public bool srcSelected = false; public bool dstSelected = ...