An interface refers to the point of interaction between components. Interfaces are applicable at both the hardware and software level. In general, an interface exposes a contract without exposing the underlying implementation details. In Object Oriented Programming, interfaces define abstract ...
4
votes
0answers
99 views
does AutoMoqCustomization work for abstract classes?
Please note, I'm somewhat new to TDD, so I will take general advice as well as specific answer.
Neither abstract classes nor interfaces can be instantiated. Clearly Moq can give me a mocked up ...
3
votes
0answers
350 views
Deserialization JSON to objects with interface fields using SuperObject
I'm having trouble deserializing an object containing a interface field from json using SuperObject (serialization works fine) on DXE2. Consider the following:
ITest = interface(IInterface)
...
3
votes
0answers
307 views
Floating menu on top of all apps
I want to make a menu floating above all applications.
I did see this question: creating a system overlay (always on top) button in android
but I want it to be functional in ICS too.
There is an ...
2
votes
0answers
64 views
Haxe interface compile to swc with native getter/setter
How to compile swc from haxe source interface with support native getter/setter. When i use:
interface ITest<T>
{
#if flash
@:getter(x) function gx():Int;
@:setter(x) function ...
2
votes
0answers
65 views
Java. Checking the type of an Anonymous Implementation of an Interface
I'm working with wicket, building a set a decoupled components. While using the event driven mechanism to let components communicate, I'm keeping a Set in the class "GenericComponent".
The basic idea ...
2
votes
0answers
69 views
Java encompasing class interface through reflection? Workaround for Java Proxy?
Possible duplicate of:
Alternatives to java.lang.reflect.Proxy for creating proxies of abstract classes (rather than interfaces)
Suppose I have this class:
public class MyClass {
public ...
2
votes
0answers
235 views
Error getting data from second db context instantiated 'through' an interface
Currently working with codefirst v5 on .net 4.5
I have 1 'master' context which includes a locations table called 'Geonames' (snippet below)
public class CoreContext : DbContext
: ...
2
votes
0answers
69 views
Arbitrary data input/output format — what is a good API/library/framework/…?
For my current project (all-c++), I am faced with the following problem due to the wide range of customers we'll be delivering to:
data used to configure/initialize/etc. our software may come from ...
2
votes
0answers
70 views
Duplicated inherited attribute
[InheritedExport]
[LoginMetadata]
public interface ILogon
{
bool Authenticate ( string UserName, string Password );
}
public interface ILoginMetadata
{
string Name
{
get;
}
...
2
votes
0answers
40 views
Component modeling in Eclipse
I want to make a component model using Eclipse (and possibly some plugins?) - and the corresponding object-model for the objects within the component. This web page has an example of the component ...
2
votes
0answers
563 views
AutoMapper mapping using interface vs concrete map
I don't think this is possible, but it's worth the question, I suppose.
I have the following types that share an interface (I promise, this isn't the same question I've asked before).
public ...
2
votes
0answers
986 views
Access MS outlook using JAVA
I want to create a JAVA application which will access my MS Outlook and download attachments from some received mails. I can not access the MS Exchange server directly and thus I plan to connect to ...
2
votes
0answers
126 views
iOS UIKit element rotation, side effects.
I have a need for rotating UISlider via its superclass property transform, by changing the rotation matrix with:
self.slider.transform = CGAffineTransformMakeRotation(45);
In the documentation for ...
2
votes
0answers
346 views
Automapper : Mapping to an Interface
I am using AutoMapper to map between an entity and an Interface
First I created my mapping and checked it is valid.
AutoMapper.Mapper.CreateMap<User, IUserViewModel>();
...
2
votes
0answers
226 views
Mapping a list of implementations of an interface with Fluent NHibernate
I get the following error when using the below mappings:
NHibernate.MappingException: Association references unmapped class: GeoTriggers.Domain.Entities.ITrigger
Entities:
public class Profile
{
...