This file contains hidden or 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
| [TestMethod] | |
| public void LoadData_SendsUpdateStatusEvents() | |
| { | |
| //Arrange | |
| _mockEventAggregator.Setup(x => x.GetEvent<UpdateStatusEvent>().Publish(It.IsAny<string>())); | |
| //Act | |
| _materialMasterVm.LoadData().GetAwaiter(); | |
| //Assert | |
| _mockEventAggregator.Verify(x => x.GetEvent<UpdateStatusEvent>().Publish(It.IsAny<string>()), Times.Exactly(2)); | |
| } |
This file contains hidden or 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 class WellSurveyPlot3DViewModel : BindableBase | |
| { | |
| private readonly List<WellXyzPoint> _calculatedSurveyPoints; | |
| private int _xDir; | |
| private int _yDir; | |
| public WellSurveyPlot3DViewModel(List<WellXyzPoint> calculatedSurveyPoints) | |
| { | |
| _calculatedSurveyPoints = calculatedSurveyPoints; | |
| MajorGridSpacing = 300; //Meters |
This file contains hidden or 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
| <h:HelixViewport3D Name="HelixViewport3D" | |
| PanGesture="LeftClick" | |
| DataContext="{Binding PreviewPlot, UpdateSourceTrigger=PropertyChanged}" | |
| DefaultCamera="{Binding PerspectiveCamera, UpdateSourceTrigger=PropertyChanged}" | |
| services:HelixViewport3DZoomExtent.ZoomExtentsOnUpdate="{Binding RelativeSource={RelativeSource AncestorType={x:Type views:WellSurveyPlot3DPreview}}, | |
| Path=DataContext.PreviewUpdatedReZoom, UpdateSourceTrigger=PropertyChanged}"> | |
| <h:SunLight/> | |
| <h:TubeVisual3D Path="{Binding TubePath}" Diameter="75" ThetaDiv="12" IsPathClosed="False" Fill="DarkSlateGray"/> |
This file contains hidden or 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
| <Page xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | |
| xmlns:sys="clr-namespace:System;assembly=mscorlib" | |
| xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" > | |
| <Grid > | |
| <Grid.RowDefinitions> | |
| <RowDefinition Height="*" /> | |
| <RowDefinition Height="Auto" /> | |
| <RowDefinition Height="*" /> | |
| </Grid.RowDefinitions> |
This file contains hidden or 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 class FluidSortComparer : Comparer<FluidPointViewModel> | |
| { | |
| public override int Compare(FluidPointViewModel x, FluidPointViewModel y) | |
| { | |
| if (x == null | y == null) return 0; | |
| if (x.Temperature > y.Temperature) return 1; | |
| if (x.Temperature < y.Temperature) return -1; | |
| return 0; | |
| } | |
| } |
This file contains hidden or 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
| //Exmaple wire up of ListCollectionView in constructor | |
| public FluidViewModel() | |
| { | |
| _fluidPoints = new ObservableCollection<FluidPointViewModel>(); | |
| FluidPointsSorted = new ListCollectionView(_fluidPoints) { CustomSort = new FluidSortComparer() }; | |
| } |
This file contains hidden or 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 WebApiConfig{ | |
| public static void Register(HttpConfiguration config) | |
| { | |
| #if DEBUG | |
| config.Filters.Add(new DebugGeneralExceptionAttribute()); | |
| #endif | |
| webApiConfig . Filters. Add( new DbEntityValidationExceptionAttribute ()); | |
| // Other configuration code... |
This file contains hidden or 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 class ConfigurationManagerWrapper : IConfigurationManager | |
| { | |
| public NameValueCollection AppSettings | |
| { | |
| get | |
| { | |
| return ConfigurationManager.AppSettings; | |
| } | |
| } |
This file contains hidden or 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
| <UserControl x:Class="KNE.Athena.Infrastructure.UserControls.NotificationPopupView" | |
| xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | |
| xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | |
| xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" | |
| xmlns:d="http://schemas.microsoft.com/expression/blend/2008" | |
| mc:Ignorable="d" | |
| Width="400" | |
| Height="180" | |
| Name="Root"> |
This file contains hidden or 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 class QueryRequest | |
| { | |
| public QueryRequest() | |
| { | |
| Query = null; | |
| Page = 1; | |
| PageSize = 10; | |
| } | |
| public string Query { get; set; } | |
| public int Page { get; set; } |
OlderNewer