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
// tests with mocked dependencies | |
[TestClass] | |
public class CheckoutTests | |
{ | |
private Mock<IPriceList> drinksMenu; | |
private Mock<IClock> clock; | |
private List<Order> orders; | |
[TestInitialize] |
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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Collections.Specialized; | |
using System.Runtime.InteropServices; | |
using Castle.Windsor; | |
using Castle.Windsor.Installer; | |
using ESRI.ArcGIS.esriSystem; | |
using ESRI.ArcGIS.Server; |
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
using System.Collections.Specialized; | |
using ESRI.ArcGIS.Geodatabase; | |
using ESRI.ArcGIS.SOESupport; | |
namespace Blog.SoeExample.Service | |
{ | |
public interface IExampleService | |
{ | |
// workspace dependency | |
IWorkspace Workspace { get; set; } |
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
using System; | |
using System.Text; | |
using System.Collections.Generic; | |
using System.Collections.Specialized; | |
using ESRI.ArcGIS.Geodatabase; | |
using ESRI.ArcGIS.SOESupport; | |
using Blog.SoeExample.Repository; | |
namespace Blog.SoeExample.Service | |
{ |
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
using System.Collections.Generic; | |
using ESRI.ArcGIS.Geodatabase; | |
using Blog.SoeExample.Model; | |
namespace Blog.SoeExample.Repository | |
{ | |
public interface IExampleRepository | |
{ | |
// workspace dependency |
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
using System; | |
using System.Collections.Generic; | |
using System.Text.RegularExpressions; | |
using System.Runtime.InteropServices; | |
using ESRI.ArcGIS.Geodatabase; | |
using ESRI.ArcGIS.Geometry; | |
using Blog.SoeExample.Model; | |
namespace Blog.SoeExample.Repository | |
{ |
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
using System; | |
using ESRI.ArcGIS.Geometry; | |
using ESRI.ArcGIS.SOESupport; | |
namespace Blog.SoeExample.Model | |
{ | |
public class Parcel : IModel | |
{ | |
public IGeometry Geometry { get; set; } | |
public string Description { get; set; } |
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
using Castle.MicroKernel.Registration; | |
using Castle.MicroKernel.SubSystems.Configuration; | |
using Castle.Windsor; | |
using ESRI.ArcGIS.Geodatabase; | |
namespace Blog.SoeExample.Installer | |
{ | |
public class ArcObjectsInstaller : IWindsorInstaller | |
{ | |
public void Install(IWindsorContainer container, IConfigurationStore store) |
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
using Castle.MicroKernel.Registration; | |
using Castle.MicroKernel.SubSystems.Configuration; | |
using Castle.Windsor; | |
using Blog.SoeExample.Service; | |
using Blog.SoeExample.Repository; | |
namespace Blog.SoeExample.Installer | |
{ | |
public class ServiceInstaller : IWindsorInstaller | |
{ |
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
[TestClass] | |
public class PriceListTest | |
{ | |
[TestMethod] | |
public TestLookupPrice() | |
{ | |
// Arrange | |
var priceList = new PriceList(); | |
// Act |