mirror of
https://github.com/Ikatono/ComiServ.git
synced 2025-10-28 20:45:35 -05:00
Added first controller unit test as well as several mock services
This commit is contained in:
33
ComiServUnitTest/Mocks/MockPictureConverter.cs
Normal file
33
ComiServUnitTest/Mocks/MockPictureConverter.cs
Normal file
@@ -0,0 +1,33 @@
|
||||
using ComiServ.Background;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Drawing;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace ComiServUnitTest.Mocks
|
||||
{
|
||||
internal class MockPictureConverter : IPictureConverter
|
||||
{
|
||||
public MockPictureConverter()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
public Task<Stream> MakeThumbnail(Stream image)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
public Task<Stream> Resize(Stream image, Size newSize, PictureFormats? newFormat = null)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
|
||||
public Task<Stream> ResizeIfBigger(Stream image, Size maxSize, PictureFormats? newFormat = null)
|
||||
{
|
||||
throw new NotImplementedException();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user