Compare commits
5 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
94146467a3 | ||
|
|
da9fad05a6 | ||
|
|
eb73767560 | ||
|
|
2954cfe259 | ||
|
|
3694e6fa0c |
@@ -1,4 +1,6 @@
|
||||
using System.IO;
|
||||
using System.Threading.Tasks;
|
||||
using Filtration.ObjectModel;
|
||||
using Filtration.Repositories;
|
||||
using Filtration.Services;
|
||||
using Filtration.ViewModels;
|
||||
@@ -11,14 +13,14 @@ namespace Filtration.Tests.Repositories
|
||||
public class TestItemFilterScriptRepository
|
||||
{
|
||||
[Test]
|
||||
public void LoadScriptFromFile_CallsPersistenceServiceUsingPathAndReturnsViewModel()
|
||||
public async Task LoadScriptFromFile_CallsPersistenceServiceUsingPathAndReturnsViewModel()
|
||||
{
|
||||
// Arrange
|
||||
var testInputPath = "C:\\TestPath.filter";
|
||||
|
||||
|
||||
var mockPersistenceService = new Mock<IItemFilterPersistenceService>();
|
||||
mockPersistenceService.Setup(p => p.LoadItemFilterScriptAsync(testInputPath)).Verifiable();
|
||||
mockPersistenceService.Setup(p => p.LoadItemFilterScriptAsync(testInputPath)).ReturnsAsync(new ItemFilterScript()).Verifiable();
|
||||
|
||||
var mockItemFilterScriptViewModel = new Mock<IItemFilterScriptViewModel>();
|
||||
|
||||
@@ -28,7 +30,7 @@ namespace Filtration.Tests.Repositories
|
||||
var repository = new ItemFilterScriptRepository(mockPersistenceService.Object, mockItemFilterScriptViewModelFactory.Object);
|
||||
|
||||
// Act
|
||||
var result = repository.LoadScriptFromFileAsync(testInputPath);
|
||||
var result = await repository.LoadScriptFromFileAsync(testInputPath);
|
||||
|
||||
// Assert
|
||||
mockPersistenceService.Verify();
|
||||
@@ -51,7 +53,7 @@ namespace Filtration.Tests.Repositories
|
||||
// Act
|
||||
|
||||
// Assert
|
||||
Assert.Throws<IOException>(() => repository.LoadScriptFromFileAsync(testInputPath));
|
||||
Assert.Throws<IOException>(async () => await repository.LoadScriptFromFileAsync(testInputPath));
|
||||
}
|
||||
|
||||
[Test]
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
using System.IO;
|
||||
using System.Threading.Tasks;
|
||||
using Filtration.Common.Services;
|
||||
using Filtration.ObjectModel;
|
||||
using Filtration.Services;
|
||||
@@ -12,7 +13,7 @@ namespace Filtration.Tests.Services
|
||||
public class TestItemFilterPersistenceService
|
||||
{
|
||||
[Test]
|
||||
public void LoadItemFilterScript_CallsTranslatorAndFileSystemService()
|
||||
public async Task LoadItemFilterScript_CallsTranslatorAndFileSystemService()
|
||||
{
|
||||
// Arrange
|
||||
const string TestInputPath = "C:\\Test Path\\Script.Filter";
|
||||
@@ -28,7 +29,7 @@ namespace Filtration.Tests.Services
|
||||
var service = new ItemFilterPersistenceService(mockFileSystemService.Object, mockItemFilterScriptTranslator.Object);
|
||||
|
||||
// Act
|
||||
var script = service.LoadItemFilterScriptAsync(TestInputPath);
|
||||
var script = await service.LoadItemFilterScriptAsync(TestInputPath);
|
||||
|
||||
// Assert
|
||||
mockFileSystemService.Verify();
|
||||
@@ -37,7 +38,7 @@ namespace Filtration.Tests.Services
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void SaveItemFilterScript_CallsTranslatorAndFileSystemService()
|
||||
public async Task SaveItemFilterScript_CallsTranslatorAndFileSystemService()
|
||||
{
|
||||
// Arrange
|
||||
var testFilePath = "C:\\Test\\File.txt";
|
||||
@@ -53,7 +54,7 @@ namespace Filtration.Tests.Services
|
||||
var service = new ItemFilterPersistenceService(mockFileSystemService.Object, mockItemFilterScriptTranslator.Object);
|
||||
|
||||
// Act
|
||||
service.SaveItemFilterScriptAsync(testScript);
|
||||
await service.SaveItemFilterScriptAsync(testScript);
|
||||
|
||||
// Assert
|
||||
mockFileSystemService.Verify();
|
||||
|
||||
@@ -50,7 +50,7 @@ using System.Windows;
|
||||
// You can specify all the values or you can default the Build and Revision Numbers
|
||||
// by using the '*' as shown below:
|
||||
// [assembly: AssemblyVersion("1.0.*")]
|
||||
[assembly: AssemblyVersion("0.10.*")]
|
||||
[assembly: AssemblyVersion("0.11.*")]
|
||||
|
||||
[assembly: InternalsVisibleTo("Filtration.Tests")]
|
||||
[assembly: InternalsVisibleTo("DynamicProxyGenAssembly2")]
|
||||
@@ -100,7 +100,7 @@
|
||||
<Image Source="/Filtration;component/Resources/Icons/speaker_icon.png" VerticalAlignment="Center" HorizontalAlignment="Center" />
|
||||
</Button>
|
||||
<ComboBox ItemsSource="{Binding ElementName=BlockItemContentControl, Path=DataContext.SoundsAvailable}" SelectedValue="{Binding Value}" Style="{StaticResource MetroComboBox}" />
|
||||
<xctk:ShortUpDown Value="{Binding Path=SecondValue}" Minimum="1" Maximum="100" HorizontalAlignment="Right" ToolTip="Volume"/>
|
||||
<xctk:ShortUpDown Value="{Binding Path=SecondValue}" Minimum="1" Maximum="300" HorizontalAlignment="Right" ToolTip="Volume"/>
|
||||
</WrapPanel>
|
||||
</DataTemplate>
|
||||
</ContentControl.Resources>
|
||||
|
||||
@@ -2,10 +2,10 @@
|
||||
|
||||
Filtration is an editor for Path of Exile item filter scripts.
|
||||
|
||||
## Current Release (Released 2015-07-15)
|
||||
<b>Installer (6.3mb)</b> <a href="https://github.com/ben-wallis/Filtration/releases/download/0.9/filtration_0.9_setup.exe">filtration_0.9_setup.exe</a>
|
||||
## Current Release (Released 2015-07-26)
|
||||
<b>Installer (6.37mb)</b> <a href="https://github.com/ben-wallis/Filtration/releases/download/0.10/filtration_0.10_setup.exe">filtration_0.10_setup.exe</a>
|
||||
|
||||
<b>Zip File (7.89mb)</b> <a href="https://github.com/ben-wallis/Filtration/releases/download/0.9/filtration_0.9.zip">filtration_0.9.zip</a>
|
||||
<b>Zip File (7.97mb)</b> <a href="https://github.com/ben-wallis/Filtration/releases/download/0.10/filtration_0.10.zip">filtration_0.10.zip</a>
|
||||
|
||||
## System Requirements
|
||||
Filtration requires .NET Framework 4.5.1 installed.
|
||||
|
||||
Reference in New Issue
Block a user