pub struct SovrinService {
dummy: String
}
impl SovrinService {
pub fn new() -> SovrinService {
SovrinService { dummy: "sovrin_dummy".to_string() }
}
}
#[cfg(test)]
mod tests {
use super::*;
#[test]
fn service_creation_is_possible() {
let sovrinService = SovrinService::new();
assert_eq!("sovrin_dummy", sovrinService.dummy, "Dummy field is filled by constructor");
}
}